← 返回命令列表

Linux command

aur-sync 命令

网络

需要网络或远程资源。

常用示例

Download and build

aur sync [package1] [package2] ...

Upgrade

aur sync -u

Build in a clean chroot

aur sync -c [package]

Sync without viewing

aur sync --noview --noconfirm [package]

Example

aur sync -u --ignore [package1] --ignore [package2]

Rebuild

aur sync -f [package]

说明

aur sync is the primary command in aurutils for downloading, building, and adding AUR packages to a local pacman repository. It resolves AUR dependencies, fetches PKGBUILDs, builds packages, and updates the local repository database. By default, it opens PKGBUILDs for review using the file manager specified by AUR_PAGER (or vifm) before building. This behavior can be disabled with --noview for automated workflows.

参数

-u, --upgrades
Check for and build upgrades to installed AUR packages.
-c, --chroot
Build packages in a clean chroot using aur-chroot.
-f, --force
Force rebuild regardless of version.
-n, --noconfirm
Do not prompt for confirmation.
--noview
Skip PKGBUILD review.
--ignore _package_
Skip a package during upgrades (repeatable).
-d, --database _name_
Use specified local repository database.
--no-ver
Disable version checking (rebuild all).
--no-ver-argv
Disable version checking for command-line arguments only.
--provides
Consider provides when resolving dependencies.
-S, --sign
Sign built packages with GPG.
-k, --keep-going
Continue building remaining packages if one fails.
--makepkg-args _args_
Pass additional arguments to makepkg.

FAQ

What is the aur-sync command used for?

aur sync is the primary command in aurutils for downloading, building, and adding AUR packages to a local pacman repository. It resolves AUR dependencies, fetches PKGBUILDs, builds packages, and updates the local repository database. By default, it opens PKGBUILDs for review using the file manager specified by AUR_PAGER (or vifm) before building. This behavior can be disabled with --noview for automated workflows.

How do I run a basic aur-sync example?

Run `aur sync [package1] [package2] ...` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u, --upgrades do in aur-sync?

Check for and build upgrades to installed AUR packages.