1 .TH AUR-SYNC 1 2022-03-03 AURUTILS
3 aur\-sync \- download and build AUR packages automatically
13 downloads and builds AUR packages automatically to a local
14 repository. It can be seen as a high level composition of
18 performs the following tasks:
20 Resolve AUR dependencies with
23 Retrieve build files with
26 Present build files before their execution with
29 Build the packages with
32 Package names serve as arguments.
36 does not expose all available functionality from
38 programs. It serves as an example how these programs can interoperate
39 for a fully automated AUR workflow.
44 Do not download package files.
47 .BI \-\-ignore= PACKAGE
48 Ignore a package upgrade. Multiple packages can be specified by
49 separating them with a comma, or by repeating the \fB\-\-ignore\fR option.
52 .BI \-\-ignore\-file= FILE
53 Ignore package upgrades listed in
55 Each package name should be specified on a separate line. If a section
56 (enclosed in square brackets) is specified, package names only apply to the
57 local repository matching this section. Comments can be specified after
58 a number sign. For example:
71 .BR $XDG_CONFIG_HOME/aurutils/sync/ignore .
75 .BI \-k " NUM" "\fR,\fP \-\-keep\-going=" NUM
78 packages fail to build
84 continue indefinitely. On failure, a summary is printed of failed and
85 succeeded builds. Requires
91 .BR \-\-noview ", " \-\-no\-view
92 Do not present build files for inspection.
95 .BR \-u ", " \-\-upgrades
96 Update all obsolete AUR packages in a local repository.
98 .SS Dependency options
99 Build dependencies are resolved with
100 .BR aur\-depends (1).
106 into account when resolving dependencies.
107 .RB ( "aur\-depends \-\-optdepends" )
110 .BR \-\-nocheck ", " \-\-no\-check
113 .RB ( "aur\-build \-\-no\-check" ", " "aur\-depends \-\-no\-checkdepends" )
116 .BR \-\-nograph ", " \-\-no\-graph
117 Do not verify the AUR dependency graph with
121 .BR \-\-nover ", " \-\-no\-ver
122 Disable version checking for packages.
125 .BR \-\-nover\-argv ", " \-\-no\-ver\-argv
126 Disable version checking for packages specified on the command line or
127 upgrade candidates from
129 Version checks for package dependencies remain enabled.
132 .BR \-\-noprovides ", " \-\-no\-provides
133 Do not take virtual dependencies
137 repositories into account to resolve package dependencies. Packages
138 specified on the command-line or available as an upgrade
139 .RB ( "aur\-sync \-u" ),
140 are taken as targets regardless of this setting.
143 .BI \-\-provides\-from= DIR1,...
144 Only take specified (comma-separated)
146 repositories into account when checking virtual dependencies. If the
147 same package is provided in multiple repositories, ordering is ignored
149 .I \-\-provides\-from=a,b
151 .IR \-\-provides\-from=b,a )
152 and dependencies are installed according to the order defined in
154 Packages specified on the command-line or available as an upgrade
155 .B ( "aur\-sync \-u" ),
156 are taken as targets regardless of this setting.
159 Values for the following options are automatically selected, if a
160 single local repository is defined in
167 .BI \-d " NAME" "\fR,\fP \-\-database=" NAME
170 repository. If this option is not specified,
172 defaults to the first
176 or aborts if multiple are available.
180 The location of the repository root. Defaults to the
182 value of the configured repository.
185 The default build command is
186 .BR "aur-build \-\-clean \-\-syncdeps" .
195 will append these options to the build command. This section only lists
198 for more information.
201 .BR \-c ", " \-\-chroot
202 Build packages in a systemd\-nspawn container.
203 .RB ( "aur build \-c" )
206 .BR \-f ", " \-\-force
207 Continue the build process if a package with the same name exists.
208 .RB ( "aur build \-f" )
211 .BR \-n ", " \-\-noconfirm ", " \-\-no\-confirm
212 Do not wait for user input when installing or removing build dependencies.
213 .BR ( "aur build \-n" )
216 .BR \-o ", " \-\-nobuild ", " \-\-no\-build
217 Print target packages and their paths instead of building them.
222 .B "makepkg \-od \-\-noprepare"
223 before the build process.
224 .RB ( "aur\-build \-\-pkgver" )
227 .BR \-r ", " \-\-rmdeps ", " \-\-rm\-deps
228 Remove dependencies installed by makepkg.
229 .RB ( "aur build \-r" )
232 .BR \-S ", " \-\-sign ", " \-\-gpg-sign
233 Sign built packages with
235 .RB ( "aur build \-S" )
244 .RB ( "aur\-build \-\-makepkg\-conf" )
250 file for chroot and local repository operations.
251 .RB ( "aur\-build \-\-pacman\-conf" ", " "aur-repo \-\-config" )
257 .BR "\-f \-\-nover\-argv" .
260 .BR \-\-rebuildtree ", " \-\-rebuild\-tree
262 .BR "\-f \-\-nover" .
265 .BR \-\-rebuildall ", " \-\-rebuild\-all
267 .BR \-\-rebuild\-tree ,
268 but append all packages in the repository (see
270 as targets. May be used together with
272 to repopulate source directories in
276 Environment variables for other
278 programs are also supported in
280 The below are specific to
284 Determines where build files will be cloned. This must be an absolute path.
286 .IR $XDG_CACHE_HOME/aurutils/sync .
289 .B AUR_SYNC_USE_NINJA
290 When set to a positive value, run
294 If a package fails to build, this allows
295 .B aur\-sync \-\-keep\-going
296 to continue with remaining, independent packages.
300 .IR $AURDEST/ninja-$USER-$$
301 directory contains the
304 .IB \fR( \fIpkgbase \fR. stamp \fR)
305 for each job. It is removed on successful completion of
314 Targets may be taken from stdin using
316 For example, to sync all installed packages in a local repository named
320 $ paclist custom | awk \(aq{print $1}\(aq | xargs \-r aur sync \-\-noconfirm
323 Note that command output interferes with input from the tty. The
325 option is used to disable interaction with
327 when installing dependencies. Alternatively, command or process substitution
331 $ xargs \-a <(paclist custom | awk \(aq{print $1}\(aq) aur sync
332 $ aur sync $(paclist custom | awk \(aq{print $1}\(aq)
336 When version checks are enabled (i.e. \fB\-\-no\-ver\fR is not specified),
337 build files are only retrieved if the remote (RPC) version is newer
338 than the version in a pacman database. Checks assume there are no
346 Architecture-specific depends (as introduced with pacman 4.2) are
347 merged with regular depends in RPC queries.
349 works around this by stripping the
351 prefix from packages and removing
353 if the i686 architecture is detected.
360 .BR aur\-depends (1),
364 .BR aur\-repo\-filter (1),
369 .MT https://github.com/AladW
373 .\" vim: set textwidth=72: