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.
51 If PACKAGE is listed on the
53 command line, this option has no effect.
56 .BI \-\-ignore\-file= FILE
57 Ignore package upgrades listed in
60 .BR $XDG_CONFIG_HOME/aurutils/sync/ignore .
61 Targets are placed on single lines and interpreted as
62 .IR <repository>/<package> .
69 custom-testing/package-baz
74 prefix is not specified, targets apply to all local repositories.
75 Comments can be specified after a number sign.
77 If <package> is listed on the
79 command line, this option has no effect.
83 .BI \-k " NUM" "\fR,\fP \-\-keep\-going=" NUM
86 packages fail to build
92 continue indefinitely. On failure, a summary is printed of failed and
93 succeeded builds. Requires
99 .BR \-\-noview ", " \-\-no\-view
100 Do not present build files for inspection.
103 .BR \-u ", " \-\-upgrades
104 Update all obsolete AUR packages in a local repository.
106 .SS Dependency options
107 Build dependencies are resolved with
108 .BR aur\-depends (1).
114 into account when resolving dependencies.
115 .RB ( "aur\-depends \-\-optdepends" )
118 .BR \-\-nocheck ", " \-\-no\-check
121 .RB ( "aur\-build \-\-no\-check" ", " "aur\-depends \-\-no\-checkdepends" )
124 .BR \-\-nograph ", " \-\-no\-graph
125 Do not verify the AUR dependency graph with
129 .BR \-\-nover ", " \-\-no\-ver
130 Disable version checking for packages.
133 .BR \-\-nover\-argv ", " \-\-no\-ver\-argv
134 Disable version checking for packages specified on the command line or
135 upgrade candidates from
137 Version checks for package dependencies remain enabled.
140 .BR \-\-noprovides ", " \-\-no\-provides
141 Do not take virtual dependencies
145 repositories into account to resolve package dependencies. Packages
146 specified on the command-line or available as an upgrade
147 .RB ( "aur\-sync \-u" ),
148 are taken as targets regardless of this setting.
151 .BI \-\-provides\-from= DIR1,...
152 Only take specified (comma-separated)
154 repositories into account when checking virtual dependencies. If the
155 same package is provided in multiple repositories, ordering is ignored
157 .I \-\-provides\-from=a,b
159 .IR \-\-provides\-from=b,a )
160 and dependencies are installed according to the order defined in
162 Packages specified on the command-line or available as an upgrade
163 .RB ( "aur\-sync \-u" ),
164 are taken as targets regardless of this setting.
167 Values for the following options are automatically selected, if a
168 single local repository is defined in
175 .BI \-d " NAME" "\fR,\fP \-\-database=" NAME
178 repository. If this option is not specified,
180 defaults to the first
184 or aborts if multiple are available.
188 The location of the repository root. Defaults to the
190 value of the configured repository.
193 If new AUR commits are available,
195 discards local (non-commited) changes and merges the new commits with
196 .BR "git\-merge \-\-ff\-only"
198 .RB ( "aur\-fetch \-\-discard" )
200 If a repository has the
205 discards local changes unconditionally and runs
207 in this specific repository.
208 .RB ( "aur\-fetch \-\-auto" )
210 The default behavior can be modified with the options below.
214 Merge new AUR commits with
215 .BR "git\-merge \-\-ff"
216 for all repositories.
217 .RB ( "aur\-fetch \-\-ff" )
221 Merge new AUR commits with
223 for all repositories.
227 Discard local changes and commits with
229 for all repositories.
230 .RB ( "aur\-fetch \-\-reset" )
233 The default build command is
234 .BR "aur-build \-\-syncdeps" .
243 will append these options to the build command. This section only lists
246 for more information.
249 .BR \-c ", " \-\-chroot
250 Build packages in a systemd\-nspawn container.
251 .RB ( "aur build \-c" )
254 .BR \-f ", " \-\-force
255 Continue the build process if a package with the same name exists.
256 .RB ( "aur build \-f" )
259 .BR \-n ", " \-\-noconfirm ", " \-\-no\-confirm
260 Do not wait for user input when installing or removing build dependencies.
261 .RB ( "aur build \-n" )
264 .BR \-o ", " \-\-nobuild ", " \-\-no\-build
265 Print target packages and their paths instead of building them.
268 .BR \-K ", " \-\-autokeyretrieve ", " \-\-auto\-key\-retrieve
269 Automatically import PGP keys to
270 .BR AUR_SYNC_GNUPGHOME ,
278 .BR \-C ", " \-\-clean
279 Clean up leftover work files and directoreis after a successful build.
280 .RB ( "aur build \-C" )
284 Remove the source directory before building the package.
285 .RB ( "aur build \-\-cleanbuild" )
290 .B "makepkg \-od \-\-noprepare"
291 before the build process.
292 .RB ( "aur\-build \-\-pkgver" )
295 .BR \-r ", " \-\-rmdeps ", " \-\-rm\-deps
296 Remove dependencies installed by makepkg.
297 .RB ( "aur build \-r" )
300 .BR \-S ", " \-\-sign ", " \-\-gpg-sign
301 Sign built packages with
303 .RB ( "aur build \-S" )
312 .RB ( "aur\-build \-\-makepkg\-conf" )
318 file for chroot and local repository operations.
319 .RB ( "aur\-build \-\-pacman\-conf" ", " "aur-repo \-\-config" )
335 .RB ( "aur\-view \-\-format" )
338 .BI \-\-exclude= FILE
341 in the diff output. Can be specified multiple times.
342 .RB ( "aur\-view \-\-exclude" )
346 Prepend package names in the diff output instead of
350 .RB ( "aur\-view \-\-prefix" )
353 Environment variables for other
355 programs are also supported in
357 The below are specific to
361 Determines where build files will be cloned. This must be an absolute path.
363 .IR $XDG_CACHE_HOME/aurutils/sync .
364 When persisting local modifications
369 it is advised to set a persistent path such as
373 .B AUR_SYNC_GNUPGHOME
376 are imported. Defaults to
377 .IR XDG_DATA_HOME/aurutils/sync/gnupg .
380 .B AUR_SYNC_USE_NINJA
381 When set to a positive value, run
385 If a package fails to build, this allows
386 .B aur\-sync \-\-keep\-going
387 to continue with remaining, independent packages.
391 .IR $AURDEST/ninja-$USER-$$
392 directory contains the
395 .IB \fR( \fIpkgbase \fR. stamp \fR)
396 for each job. It is removed on successful completion of
405 Targets may be taken from stdin using
407 For example, to sync all installed packages in a local repository named
411 $ paclist custom | awk \(aq{print $1}\(aq | xargs \-r aur sync \-\-noconfirm
414 Note that command output interferes with input from the tty. The
416 option is used to disable interaction with
418 when installing dependencies. Alternatively, command or process substitution
422 $ xargs \-a <(paclist custom | awk \(aq{print $1}\(aq) aur sync
423 $ aur sync $(paclist custom | awk \(aq{print $1}\(aq)
427 When version checks are enabled (i.e. \fB\-\-no\-ver\fR is not specified),
428 build files are only retrieved if the remote (RPC) version is newer
429 than the version in a pacman database. Checks assume there are no
437 Architecture-specific depends (as introduced with pacman 4.2) are
438 merged with regular depends in RPC queries.
440 works around this by stripping the
442 prefix from packages and removing
444 if the i686 architecture is detected.
451 .BR aur\-depends (1),
455 .BR aur\-repo\-filter (1),
460 .MT https://github.com/AladW
464 .\" vim: set textwidth=72: