1 .TH AUR-FETCH 1 2022-08-04 AURUTILS
3 aur\-fetch \- download packages from the AUR
6 .SY "aur fetch [-S] [-f] [--rebase] [--reset]"
7 .IR pkgbase " [" pkgbase... ]
12 downloads packages specified on the command-line from the AUR using
14 If the first argument is
18 packages are taken from standard input.
22 repositories are retrieved with
24 if they do not exist. Otherwise, the
26 remote is updated with
28 Changes can be merged with
29 .BR git\-merge " (" \-\-merge ),
30 .BR git\-rebase " (" \-\-rebase ),
32 .BR git\-reset " (" \-\-reset ).
37 as the only remote branch, so changes are always merged
40 Local changes may however live in different branches.
44 .BR \-\-sync=merge ", " \-\-merge
47 and merge upstream changes with
52 options are specified,
53 only fast-forwards are allowed with
54 .BR "git\-merge \-\-ff\-only" .
67 When previewing changes with
69 it is advised to also use
71 so that no commits are applied to the index even when a fast-forward is possible. See
76 .BR \-\-sync=rebase ", " \-\-rebase
81 re-applying local commits on top of upstream AUR commits. The
83 option is supported and forwarded to
88 If a rebase does not apply cleanly, the user is expected to fix any
89 issues occurring in the git repository before continuing. A rebase may
90 also inadvertently keep malicious commits that Trusted Users have
91 removed from the git history. The
93 option should thus be used with care. See
98 .BR \-\-sync=auto ", " \-\-auto
101 for a repository with
112 .BR \-\-sync=reset ", " \-\-reset
113 Retrieve new revisions with
119 commit, removing any local commits.
126 .BR \-\-sync=rebase ,
127 uncommitted changes may cause the operation to fail. Furthermore,
129 expects a clean work tree.
135 option checks if new upstream commits are available with
136 .BR git\-merge\-base .
137 If so, uncommited changes are discarded with
141 .BR \-\-sync=rebase ,
150 Check if a git repositories exist in AUR using
151 .BR git\-ls-remote (1)
152 before retrieving or updating them.
155 .BR \-r ", " \-\-recurse
156 Download packages and their dependencies with
157 .BR aur\-depends (1).
158 If this option is specified, arguments must be supplied by
164 .BI \-\-results= FILE
165 Write colon-delimited output in the following form to
168 .I <action>:<head_from>:<head_to>:file://<path>
178 Can be used by higher level tools to differentiate new clones from
179 updates to existing repositories.
187 .BR 4b825dc642cb6eb9a060e54bf8d69288fbee4904 ,
192 is the absolute path to the corresponding git repository.
196 .B \-\-no\-commit \-\-no\-ff
207 URI where repositories are cloned from. Defaults to
208 .MT https://aur.archlinux.org .
213 URI to an AUR mirror, a
215 repository where each package is contained in a
218 .MT https://github.com/archlinux/aur
223 When updating an AUR mirror, a list of all branches is retrieved with
225 to validate arguments. The
227 variable defines (in seconds) how often this command is run. For accurate
228 results, this should roughly equal the synchronization interval between AUR and
229 its mirrors. Defaults to
234 The default branch of an AUR mirror. Defaults to
238 .B AUR_FETCH_USE_MIRROR
239 If this variable is set to a positive value, clone repositories from an AUR
242 Upstream changes are merged from
249 repositories are preserved. When enabling or disabling
250 .BR AUR_FETCH_MIRROR ,
251 repositories should be converted manually with
252 .B git\-remote set\-url
254 .BR "git\-remote set\-branches origin" .
258 Directory where an AUR mirror is cloned to. Defaults to
259 .IR XDG_CACHE_HOME/aur .
265 .BR aur\-depends (1),
274 .BR git\-rev\-parse (1)
277 .MT https://github.com/AladW
281 .\" vim: set textwidth=72: