-
Notifications
You must be signed in to change notification settings - Fork 11
/
apacman.8
433 lines (432 loc) · 7.6 KB
/
apacman.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
'\" t
.\" Title: apacman
.\" Author: [see the "Authors" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 10/12/2016
.\" Manual: apacman Manual
.\" Source: apacman
.\" Language: English
.\"
.TH "APACMAN" "8" "10/12/2016" "apacman" "apacman Manual"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
apacman \- AUR wrapper forked from packer
.SH "SYNOPSIS"
.sp
\fIapacman\fR <operation> [options] [packages]
.SH "DESCRIPTION"
.sp
apacman is a bash wrapper forked from packer for pacman and the ArchLinux User Repository (AUR)\&. It adds package saving functionality and some extra
pass-through options for makepkg and pacman.
.SH "OPERATIONS"
.PP
\fB\-Ss\fR
.RS 4
Search for a package\&.
.RE
.PP
\fB\-S\fR
.RS 4
Install a package\&.
.RE
.PP
\fB\-Syu\fR
.RS 4
Sync with repositories\&.
.RE
.PP
\fB\-Si\fR
.RS 4
Show information for a package\&.
.RE
.PP
\fB\-G\fR
.RS 4
Download and extract ABS and AUR package tarballs, but don\(cqt install anything\&.
.RE
.PP
\fB\-L\fR
.RS 4
List installed packages by size (replacement for \fIpacsysclean\fR command)\&.
.RE
.PP
\fB\-P, \-\-pkgfile\fR
.RS 4
Patched AUR passthrough for \fIpkgfile\fR command\&.
.RE
.PP
\fB\-W\fR
.RS 4
View AUR comments\&.
.RE
.PP
\fB\-V\fR
.RS 4
Show apacman version\&.
.RE
.PP
\fB\-v, \-\-verbose\fR
.RS 4
Show enabled options\&.
.RE
.PP
\fB\-h, \-\-help\fR
.RS 4
Show apacman usage\&.
.RE
.SH "OPTIONS"
.PP
\fB\-\-auronly\fR
.RS 4
Only perform commands for the AUR\&.
.RE
.PP
\fB\-\-buildonly\fR
.RS 4
Build packages but do not install them then post\-install remove unneeded build makedepends\&.
.PP
\fBNote:\fR list of package filenames stored in \fI$tmpdir/bundle\&.lst\fB
.RE
.PP
\fB\-\-config\fR \fIfilename\fR, \fB\-\-config=\fR\fIfilename\fR
.RS 4
Use alternate configuration file\&.
.RE
.PP
\fB\-\-cachevcs\fR
.RS 4
installs cached VCS (git, svn, hg) packages newer than AUR PKGBUILDs\&.
.RE
.PP
\fB\-\-devel\fR
.RS 4
Update development packages\&. (cvs, git\&...)
.RE
.PP
\fB\-\-edit\fR
.RS 4
Always ask to edit PKGBUILD (overrides 'noedit' option)\&.
.RE
.PP
\fB\-\-gendb\fR
.RS 4
Generate AUR local package database\&.
.RE
.PP
\fB\-\-ignore\fR \fIpackage\fR, \fB\-\-ignore=\fR\fIpkg1\fR,\fIpkg2\fR,\fIpkg3\fR
.RS 4
Ignore packages\&. Separate package names with a comma\&.
.RE
.PP
\fB\-\-ignorearch\fR
.RS 4
ignores architectures specified in PKGBUILD\&.
.RE
.PP
\fB\-\-keepkeys\fR
.RS 4
Do not remove imported PGP keys\&.
.RE
.PP
\fB\-\-legacy\fR
.RS 4
Use AUR3 repo rather than default AUR4 (deprecated)\&.
.RE
.PP
\fB\-\-needed\fR
.RS 4
Does not install up-to-date packages\&.
.RE
.PP
\fB\-\-noaur\fR
.RS 4
Do not perform commands for the AUR\&.
.RE
.PP
\fB\-\-noconfirm\fR
.RS 4
Perform commands without confirmation from the user\&.
.RE
.PP
\fB\-\-nodatabase\fR
.RS 4
Do not store AUR database\&.
.RE
.PP
\fB\-\-noedit\fR
.RS 4
Perform commands without asking if the user wants to edit any installation files\&.
.RE
.PP
\fB\-\-nofail\fR
.RS 4
Immediately quit if any package does not build successfully\&.
.RE
.PP
\fB\-\-noprogress\fR
.RS 4
Do not replace terminal title with transaction status\&.
.RE
.PP
\fB\-\-nosource\fR
.RS 4
Do not source PKGBUILDs, for security reasons (WIP)\&.
.RE
.PP
\fB\-\-notify\fR
.RS 4
Notification via \fInotify\-send\fR with transaction status\&.
.RE
.PP
\fB\-\-preview\fR
.RS 4
Always offer to edit the pkgbuild before sourcing it\&.
.RE
.PP
\fB\-\-progress\fR
.RS 4
Terminal title transaction status\&.
.RE
.PP
\fB\-\-purgebuild\fR
.RS 4
Post\-install remove unneeded build makedepends\&.
.RE
.PP
\fB\-\-purgekeys\fR
.RS 4
Remove trusted PGP keys\&.
.RE
.PP
\fB\-\-quickcheck\fR
.RS 4
Check for updates and exit\&.
.RE
.PP
\fB\-\-quiet\fR
.RS 4
Turn off package descriptions\&.
.RE
.PP
\fB\-\-savedir\fR \fIdirectory\fR, \fB\-\-savedir=\fR\fIdirectory\fR
.RS 4
Use alternate cache directory\&.
.RE
.PP
\fB\-\-skipcache\fR
.RS 4
skips check for pre-built package in cache directory\&.
.RE
.PP
\fB\-\-skipinteg\fR
.RS 4
Skip the integrity check by ignoring AUR package MD5 sums\&.
.RE
.PP
\fB\-\-skiptest\fR
.RS 4
Avoid install of check unit test packages\&.
.RE
.PP
\fB\-\-warn\fR
.RS 4
Treat errors as non-fatal warnings (only enable if you are know what you are doing\&.)
.RE
.SH "INTERACTIVE MODE"
.sp
Use apacman without any operations or options to use the interactive mode\&. apacman will show a numbered list of search results\&. To install a package, enter the corresponding number\&.
.SH "EXAMPLE USAGE"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Sync and update all packages:
apacman \-Syu
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Update only AUR packages:
apacman \-Syu \-\-auronly
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Update, and reinstall packages that were installed from a revision control source:
apacman \-Syu \-\-devel
.RE
.sp
For a package called \fIname\fR:
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Search:
apacman \-Ss \fIname\fR
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Install:
apacman \-S \fIname\fR
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Install without confirmations:
apacman \-S \-\-noconfirm \fIname\fR
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Get information about a package:
apacman \-Si \fIname\fR
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Search and install in interactive mode:
apacman \fIname\fR
.RE
.SH "CONFIGURATION"
.sp
apacman defaults to saving succesfully built packages to /var/cache/apacman/pkg.
.sp
apacman uses the AUR package cache directory if applicable (unless \-\-skipcache parameter)
.sp
By default VCS package versions are compared via PKGBUILD in AUR (unless \-\-cachevcs parameter)
.sp
apacman output will be colorized unless the environmental variable COLOR is set to `NO'.
.sp
To manually edit files, apacman uses the EDITOR variable\&. If EDITOR is not set then the default editor is vi\&.
.sp
Packages are built in the TMPDIR path\&. If the TMPDIR variable is not set then the default path is /tmp
.sp
Default configuration file:
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
/etc/apacman\&.conf
.RE
.sp
These settings are used from /etc/pacman\&.conf:
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
IgnorePkg
.RE
.SH EXIT CODES
.sp
There are several possible exit status codes, useful for scripting or debugging listed below.
.sp
Note: apacman<=3.0 only uses 0 for success, 1 for fail.
.IP 0
Success
.IP 1
Miscellaneous errors
.IP 2
Invalid parameters
.IP 3
Fatal errors, not warnings
.IP 4
No package matches found
.IP 5
Package does not exist
.IP 6
No internet connection
.IP 7
No free space in tmpfs
.IP 8
One or more package(s) failed to build, keep going
.IP 9
One package failed to build, do not continue
.IP 10
Permission problem \-\- fakeroot
.IP 11
Permission problem \-\- root user
.IP 12
Permission problem \-\- sudo
.IP 13
Permission problem \-\- su
.RE
.SH "SEE ALSO"
.sp
\fBapacman.conf\fR(5)
.sp
\fBpacman\fR(8)
.sp
\fBpkgfile\fR(1)
.sp
\fBpacker\fR(8)
.SH "AUTHORS"
.sp
OS Hazard <oshazard+apacman@gmail\&.com>
.sp
Matthew Bruenig <matthewbruenig@gmail\&.com>