Add scriptlet-specific disablers for %pretrans and %posttrans
[platform/upstream/rpm.git] / doc / rpm.8
1 .\" This manpage has been automatically generated by docbook2man 
2 .\" from a DocBook document.  This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4 .\" Please send any bug reports, improvements, comments, patches, 
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "RPM" "8" "09 June 2002" "Red Hat, Inc."
7 .SH NAME
8 rpm \- RPM Package Manager
9 .SH SYNOPSIS
10 .SS "QUERYING AND VERIFYING PACKAGES:"
11 .PP
12
13
14 \fBrpm\fR {\fB-q|--query\fR} [\fBselect-options\fR] [\fBquery-options\fR]
15
16
17
18 \fBrpm\fR {\fB-V|--verify\fR} [\fBselect-options\fR] [\fBverify-options\fR]
19
20
21
22 \fBrpm\fR [\fB--nosignature\fR] [\fB--nodigest\fR]
23     \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
24
25 .SS "INSTALLING, UPGRADING, AND REMOVING PACKAGES:"
26 .PP
27
28
29 \fBrpm\fR {\fB-i|--install\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
30
31
32
33 \fBrpm\fR {\fB-U|--upgrade\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
34
35
36
37 \fBrpm\fR {\fB-F|--freshen\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
38
39
40
41 \fBrpm\fR {\fB-e|--erase\fR} [\fB--allmatches\fR] [\fB--nodeps\fR] [\fB--noscripts\fR]
42     [\fB--notriggers\fR] [\fB--test\fR] \fB\fIPACKAGE_NAME\fB\fR\fI\ ...\fR
43
44 .SS "MISCELLANEOUS:"
45 .PP
46
47
48 \fBrpm\fR {\fB--querytags|--showrc\fR}
49
50
51
52 \fBrpm\fR {\fB--setperms|--setugids\fR} \fB\fIPACKAGE_NAME\fB\fR\fI ...\fR
53
54 .SS "select-options"
55 .PP
56
57
58  [\fB\fIPACKAGE_NAME\fB\fR] [\fB-a,--all\fR] [\fB-f,--file \fIFILE\fB\fR]
59  [\fB-g,--group \fIGROUP\fB\fR] {\fB-p,--package \fIPACKAGE_FILE\fB\fR]
60  [\fB--hdrid \fISHA1\fB\fR] [\fB--pkgid \fIMD5\fB\fR] [\fB--tid \fITID\fB\fR]
61  [\fB--querybynumber \fIHDRNUM\fB\fR] [\fB--triggeredby \fIPACKAGE_NAME\fB\fR]
62  [\fB--whatprovides \fICAPABILITY\fB\fR] [\fB--whatrequires \fICAPABILITY\fB\fR]
63
64 .SS "query-options"
65 .PP
66
67
68  [\fB--changelog\fR] [\fB-c,--configfiles\fR] [\fB--conflicts\fR]
69  [\fB-d,--docfiles\fR] [\fB--dump\fR] [\fB--filesbypkg\fR] [\fB-i,--info\fR]
70  [\fB--last\fR] [\fB-l,--list\fR] [\fB--obsoletes\fR] [\fB--provides\fR]
71  [\fB--qf,--queryformat \fIQUERYFMT\fB\fR] [\fB-R,--requires\fR]
72  [\fB--scripts\fR] [\fB-s,--state\fR] [\fB--triggers,--triggerscripts\fR]
73
74 .SS "verify-options"
75 .PP
76
77
78  [\fB--nodeps\fR] [\fB--nofiles\fR] [\fB--noscripts\fR]
79  [\fB--nodigest\fR] [\fB--nosignature\fR]
80  [\fB--nolinkto\fR] [\fB--nofiledigest\fR] [\fB--nosize\fR] [\fB--nouser\fR]
81  [\fB--nogroup\fR] [\fB--nomtime\fR] [\fB--nomode\fR] [\fB--nordev\fR]
82  [\fB--nocaps\fR]
83
84 .SS "install-options"
85 .PP
86
87
88  [\fB--allfiles\fR] [\fB--badreloc\fR] [\fB--excludepath \fIOLDPATH\fB\fR]
89  [\fB--excludedocs\fR] [\fB--force\fR] [\fB-h,--hash\fR]
90  [\fB--ignoresize\fR] [\fB--ignorearch\fR] [\fB--ignoreos\fR]
91  [\fB--includedocs\fR] [\fB--justdb\fR] [\fB--nocollections\fR]
92  [\fB--nodeps\fR] [\fB--nodigest\fR] [\fB--nosignature\fR]
93  [\fB--noorder\fR] [\fB--noscripts\fR] [\fB--notriggers\fR] 
94  [\fB--oldpackage\fR] [\fB--percent\fR] [\fB--prefix \fINEWPATH\fB\fR]
95  [\fB--relocate \fIOLDPATH\fB=\fINEWPATH\fB\fR]
96  [\fB--replacefiles\fR] [\fB--replacepkgs\fR]
97  [\fB--test\fR]
98
99 .SH "DESCRIPTION"
100 .PP
101 \fBrpm\fR is a powerful \fBPackage Manager\fR,
102 which can be used to build, install, query, verify, update, and
103 erase individual software packages.
104 A \fBpackage\fR consists of an archive of files and
105 meta-data used to install and erase the archive files. The meta-data
106 includes helper scripts, file attributes, and descriptive information
107 about the package.
108 \fBPackages\fR come in two varieties: binary packages,
109 used to encapsulate software to be installed, and source packages,
110 containing the source code and recipe necessary to produce binary
111 packages.
112 .PP
113 One of the following basic modes must be selected:
114 \fBQuery\fR,
115 \fBVerify\fR,
116 \fBInstall/Upgrade/Freshen\fR,
117 \fBUninstall\fR,
118 \fBSet Owners/Groups\fR,
119 \fBShow Querytags\fR, and
120 \fBShow Configuration\fR.
121 .SS "GENERAL OPTIONS"
122 .PP
123 These options can be used in all the different modes.
124 .TP
125 \fB-?, --help\fR
126 Print a longer usage message then normal.
127 .TP
128 \fB--version\fR
129 Print a single line containing the version number of \fBrpm\fR
130 being used. 
131 .TP
132 \fB--quiet\fR
133 Print as little as possible - normally only error messages will
134 be displayed.
135 .TP
136 \fB-v\fR
137 Print verbose information - normally routine progress messages will be
138 displayed.
139 .TP
140 \fB-vv\fR
141 Print lots of ugly debugging information.
142 .TP
143 \fB--rcfile \fIFILELIST\fB\fR
144 Each of the files in the colon separated
145 \fIFILELIST\fR
146 is read sequentially by \fBrpm\fR for configuration
147 information.
148 Only the first file in the list must exist, and tildes will be
149 expanded to the value of \fB$HOME\fR.
150 The default \fIFILELIST\fR is
151 \fI/usr/lib/rpm/rpmrc\fR:\fI/usr/lib/rpm/redhat/rpmrc\fR:\fI/etc/rpmrc\fR:\fI~/.rpmrc\fR.
152 .TP
153 \fB--pipe \fICMD\fB\fR
154 Pipes the output of \fBrpm\fR to the command \fICMD\fR.
155 .TP
156 \fB--dbpath \fIDIRECTORY\fB\fR
157 Use the database in \fIDIRECTORY\fR rather
158 than the default path \fI/var/lib/rpm\fR
159 .TP
160 \fB--root \fIDIRECTORY\fB\fR
161 Use the file system tree rooted at \fIDIRECTORY\fR for all operations.
162 Note that this means the database within
163 \fIDIRECTORY\fR
164 will be used for dependency checks and any scriptlet(s) (e.g.
165 \fB%post\fR if installing, or
166 \fB%prep\fR if building, a package)
167 will be run after a chroot(2) to
168 \fIDIRECTORY\fR.
169 .TP
170 \fB-D, --define='\fIMACRO EXPR\fB'\fR
171 Defines \fIMACRO\fR with value \fIEXPR\fR.
172 .TP
173 \fB--undefine='\fIMACRO\fB'\fR
174 Undefines \fIMACRO\fR.
175 .TP
176 \fB-E, --eval='\fIEXPR\fB'\fR
177 Prints macro expansion of \fIEXPR\fR.
178 .SS "INSTALL AND UPGRADE OPTIONS"
179 .PP
180 In these options, \fIPACKAGE_FILE\fR can be either \fBrpm\fR binary
181 file or ASCII package manifest (see \fBPACKAGE SELECTION OPTIONS\fR), and
182 may be specified as an
183 \fBftp\fR or
184 \fBhttp\fR URL,
185 in which case the package will be downloaded before being
186 installed. See \fBFTP/HTTP OPTIONS\fR
187 for information on \fBrpm\fR's internal
188 \fBftp\fR and
189 \fBhttp\fR
190 client support.
191 .PP
192 The general form of an rpm install command is 
193 .PP
194 \fBrpm\fR {\fB-i|--install\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
195 .PP
196 This installs a new package.
197 .PP
198 The general form of an rpm upgrade command is 
199 .PP
200 \fBrpm\fR {\fB-U|--upgrade\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
201 .PP
202 This upgrades or installs the package currently installed
203 to a newer version.  This is the same as install, except
204 all other version(s) of the package are removed after the
205 new package is installed.
206 .PP
207 \fBrpm\fR {\fB-F|--freshen\fR} [\fBinstall-options\fR] \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
208 .PP
209 This will upgrade packages, but only ones for which an earlier version is
210 installed.
211 .PP
212 .TP
213 \fB--allfiles\fR
214 Installs or upgrades all the missingok files in the package,
215 regardless if they exist.
216 .TP
217 \fB--badreloc\fR
218 Used with \fB--relocate\fR, permit relocations on
219 all file paths, not just those \fIOLDPATH\fR's
220 included in the binary package relocation hint(s).
221 .TP
222 \fB--excludepath \fIOLDPATH\fB\fR
223 Don't install files whose name begins with
224 \fIOLDPATH\fR.
225 .TP
226 \fB--excludedocs\fR
227 Don't install any files which are marked as documentation
228 (which includes man pages and texinfo documents).
229 .TP
230 \fB--force\fR
231 Same as using
232 \fB--replacepkgs\fR,
233 \fB--replacefiles\fR, and
234 \fB--oldpackage\fR.
235 .TP
236 \fB-h, --hash\fR
237 Print 50 hash marks as the package archive is unpacked.
238 Use with \fB-v|--verbose\fR for a nicer display.
239 .TP
240 \fB--ignoresize\fR
241 Don't check mount file systems for sufficient disk space before
242 installing this package.
243 .TP
244 \fB--ignorearch\fR
245 Allow installation or upgrading even if the architectures
246 of the binary package and host don't match.
247 .TP
248 \fB--ignoreos\fR
249 Allow installation or upgrading even if the operating
250 systems of the binary package and host don't match.
251 .TP
252 \fB--includedocs\fR
253 Install documentation files. This is the default behavior.
254 .TP
255 \fB--justdb\fR
256 Update only the database, not the filesystem.
257 .TP
258 \fB--nodigest\fR
259 Don't verify package or header digests when reading.
260 .TP
261 \fB--nomanifest\fR
262 Don't process non-package files as manifests.
263 .TP
264 \fB--nosignature\fR
265 Don't verify package or header signatures when reading.
266 .TP
267 \fB--nodeps\fR
268 Don't do a dependency check before installing or upgrading
269 a package.
270 .TP
271 \fB--noorder\fR
272 Don't reorder the packages for an install. The list of
273 packages would normally be reordered to satisfy dependencies.
274 .TP
275 \fB--noscripts\fR
276 .TP
277 \fB--nopre\fR
278 .TP
279 \fB--nopost\fR
280 .TP
281 \fB--nopreun\fR
282 .TP
283 \fB--nopostun\fR
284 .TP
285 \fB--nopretrans\fR
286 .TP
287 \fB--noposttrans\fR
288 Don't execute the scriptlet of the same name.
289 The \fB--noscripts\fR option is equivalent to
290
291 \fB--nopre\fR
292 \fB--nopost\fR
293 \fB--nopreun\fR
294 \fB--nopostun\fR
295 \fB--nopretrans\fR
296 \fB--noposttrans\fR
297
298 and turns off the execution of the corresponding
299 \fB%pre\fR,
300 \fB%post\fR,
301 \fB%preun\fR,
302 \fB%postun\fR
303 \fB%pretrans\fR, and
304 \fB%posttrans\fR
305 scriptlet(s).
306 .TP
307 \fB--notriggers\fR
308 .TP
309 \fB--notriggerin\fR
310 .TP
311 \fB--notriggerun\fR
312 .TP
313 \fB--notriggerprein\fR
314 .TP
315 \fB--notriggerpostun\fR
316 Don't execute any trigger scriptlet of the named type.
317 The \fB--notriggers\fR option is equivalent to
318
319 \fB--notriggerprein\fR
320 \fB--notriggerin\fR
321 \fB--notriggerun\fR
322 \fB--notriggerpostun\fR
323
324 and turns off execution of the corresponding
325 \fB%triggerprein\fR,
326 \fB%triggerin\fR,
327 \fB%triggerun\fR, and
328 \fB%triggerpostun\fR
329 scriptlet(s).
330 .TP
331 \fB--oldpackage\fR
332 Allow an upgrade to replace a newer package with an older one.
333 .TP
334 \fB--percent\fR
335 Print percentages as files are unpacked from the package archive.
336 This is intended to make \fBrpm\fR easy to run from
337 other tools.
338 .TP
339 \fB--prefix \fINEWPATH\fB\fR
340 For relocatable binary packages, translate all file paths that
341 start with the installation prefix in the package relocation hint(s)
342 to \fINEWPATH\fR.
343 .TP
344 \fB--relocate \fIOLDPATH\fB=\fINEWPATH\fB\fR
345 For relocatable binary packages, translate all file paths
346 that start with \fIOLDPATH\fR in the
347 package relocation hint(s) to \fINEWPATH\fR.
348 This option can be used repeatedly if several
349 \fIOLDPATH\fR's in the package are to
350 be relocated.
351 .TP
352 \fB--replacefiles\fR
353 Install the packages even if they replace files from other,
354 already installed, packages.
355 .TP
356 \fB--replacepkgs\fR
357 Install the packages even if some of them are already installed
358 on this system.
359 .TP
360 \fB--test\fR
361 Do not install the package, simply check for and report
362 potential conflicts.
363 .SS "ERASE OPTIONS"
364 .PP
365 The general form of an rpm erase command is 
366 .PP
367
368 \fBrpm\fR {\fB-e|--erase\fR} [\fB--allmatches\fR] [\fB--nodeps\fR] [\fB--noscripts\fR] [\fB--notriggers\fR] [\fB--test\fR] \fB\fIPACKAGE_NAME\fB\fR\fI ...\fR
369
370 .PP
371 The following options may also be used:
372 .TP
373 \fB--allmatches\fR
374 Remove all versions of the package which match
375 \fIPACKAGE_NAME\fR. Normally an
376 error is issued if \fIPACKAGE_NAME\fR
377 matches multiple packages.
378 .TP
379 \fB--nodeps\fR
380 Don't check dependencies before uninstalling the packages.
381 .TP
382 \fB--noscripts\fR
383 .TP
384 \fB--nopreun\fR
385 .TP
386 \fB--nopostun\fR
387 Don't execute the scriptlet of the same name.
388 The \fB--noscripts\fR option during package erase is
389 equivalent to
390
391 \fB--nopreun\fR
392 \fB--nopostun\fR
393
394 and turns off the execution of the corresponding
395 \fB%preun\fR, and
396 \fB%postun\fR
397 scriptlet(s).
398 .TP
399 \fB--notriggers\fR
400 .TP
401 \fB--notriggerun\fR
402 .TP
403 \fB--notriggerpostun\fR
404 Don't execute any trigger scriptlet of the named type.
405 The \fB--notriggers\fR option is equivalent to
406
407 \fB--notriggerun\fR
408 \fB--notriggerpostun\fR
409
410 and turns off execution of the corresponding
411 \fB%triggerun\fR, and
412 \fB%triggerpostun\fR
413 scriptlet(s).
414 .TP
415 \fB--test\fR
416 Don't really uninstall anything, just go through the motions.
417 Useful in conjunction with the \fB-vv\fR option
418 for debugging.
419 .SS "QUERY OPTIONS"
420 .PP
421 The general form of an rpm query command is 
422 .PP
423
424 \fBrpm\fR {\fB-q|--query\fR} [\fBselect-options\fR] [\fBquery-options\fR]
425
426 .PP
427 You may specify the format that package information should be
428 printed in. To do this, you use the
429
430  \fB--qf|--queryformat\fR \fB\fIQUERYFMT\fB\fR
431
432 option, followed by the \fIQUERYFMT\fR
433 format string.  Query formats are modified versions of the
434 standard \fBprintf(3)\fR formatting. The format
435 is made up of static strings (which may include standard C
436 character escapes for newlines, tabs, and other special
437 characters) and \fBprintf(3)\fR type formatters.
438 As \fBrpm\fR already knows the type to print, the
439 type specifier must be omitted however, and replaced by the name
440 of the header tag to be printed, enclosed by \fB{}\fR
441 characters. Tag names are case insensitive, and the leading
442 \fBRPMTAG_\fR portion of the tag name may be omitted
443 as well.
444 .PP
445 Alternate output formats may be requested by following
446 the tag with \fB:\fItypetag\fB\fR.
447 Currently, the following types are supported:
448 .TP
449 \fB:armor\fR
450 Wrap a public key in ASCII armor.
451 .TP
452 \fB:arraysize\fR
453 Display number of elements in array tags.
454 .TP
455 \fB:base64\fR
456 Encode binary data using base64.
457 .TP
458 \fB:date\fR
459 Use strftime(3) "%c" format.
460 .TP
461 \fB:day\fR
462 Use strftime(3) "%a %b %d %Y" format.
463 .TP
464 \fB:depflags\fR
465 Format dependency comparison operator.
466 .TP
467 \fB:deptype\fR
468 Format dependency type.
469 .TP
470 \fB:expand\fR
471 Perform macro expansion.
472 .TP
473 \fB:fflags\fR
474 Format file flags.
475 .TP
476 \fB:fstate\fR
477 Format file state.
478 .TP
479 \fB:fstatus\fR
480 Format file verify status.
481 .TP
482 \fB:hex\fR
483 Format in hexadecimal.
484 .TP
485 \fB:octal\fR
486 Format in octal.
487 .TP
488 \fB:perms\fR
489 Format file permissions.
490 .TP
491 \fB:pgpsig\fR
492 Display signature fingerprint and time.
493 .TP
494 \fB:shescape\fR
495 Escape single quotes for use in a script.
496 .TP
497 \fB:triggertype\fR
498 Display trigger suffix.
499 .TP
500 \fB:vflags\fR
501 File verification flags.
502 .TP
503 \fB:xml\fR
504 Wrap data in simple xml markup.
505 .PP
506 For example, to print only the names of the packages queried,
507 you could use \fB%{NAME}\fR as the format string.
508 To print the packages name and distribution information in
509 two columns, you could use \fB%-30{NAME}%{DISTRIBUTION}\fR.
510 \fBrpm\fR will print a list of all of the tags it knows about when it
511 is invoked with the \fB--querytags\fR argument.
512 .PP
513 There are two subsets of options for querying: package selection,
514 and information selection.
515 .SS "PACKAGE SELECTION OPTIONS:"
516 .PP
517 .TP
518 \fB\fIPACKAGE_NAME\fB\fR
519 Query installed package named \fIPACKAGE_NAME\fR.
520 .TP
521 \fB-a, --all\fR
522 Query all installed packages.
523 .TP
524 \fB-f, --file \fIFILE\fB\fR
525 Query package owning \fIFILE\fR.
526 .TP
527 \fB-g, --group \fIGROUP\fB\fR
528 Query packages with the group of \fIGROUP\fR.
529 .TP
530 \fB--hdrid \fISHA1\fB\fR
531 Query package that contains a given header identifier, i.e. the
532 \fISHA1\fR digest of the immutable header region.
533 .TP
534 \fB-p, --package \fIPACKAGE_FILE\fB\fR
535 Query an (uninstalled) package \fIPACKAGE_FILE\fR.
536 The \fIPACKAGE_FILE\fR may be specified
537 as an \fBftp\fR or \fBhttp\fR style URL, in
538 which case the package header will be downloaded and queried.
539 See \fBFTP/HTTP OPTIONS\fR for information on
540 \fBrpm\fR's internal
541 \fBftp\fR and
542 \fBhttp\fR
543 client support. The \fIPACKAGE_FILE\fR argument(s),
544 if not a binary package, will be interpreted as an ASCII package
545 manifest unless \fB--nomanifest\fR option is used.  
546 In manifests, comments are permitted, starting with a '#', and each
547 line of a package manifest file may include white space separated
548 glob expressions, including URL's,
549 that will be expanded to paths that are substituted in place of
550 the package manifest as additional \fIPACKAGE_FILE\fR
551 arguments to the query.
552 .TP
553 \fB--pkgid \fIMD5\fB\fR
554 Query package that contains a given package identifier, i.e. the
555 \fIMD5\fR digest of the combined header and
556 payload contents.
557 .TP
558 \fB--querybynumber \fIHDRNUM\fB\fR
559 Query the \fIHDRNUM\fRth database entry
560 directly; this is useful only for debugging.
561 .TP
562 \fB--specfile \fISPECFILE\fB\fR
563 Parse and query \fISPECFILE\fR as if
564 it were a package. Although not all the information (e.g. file lists)
565 is available, this type of query permits rpm to be used to extract
566 information from spec files without having to write a specfile
567 parser.
568 .TP
569 \fB--tid \fITID\fB\fR
570 Query package(s) that have a given \fITID\fR
571 transaction identifier. A unix time stamp is currently used as a
572 transaction identifier. All package(s) installed or erased within
573 a single transaction have a common identifier.
574 .TP
575 \fB--triggeredby \fIPACKAGE_NAME\fB\fR
576 Query packages that are triggered by package(s)
577 \fIPACKAGE_NAME\fR.
578 .TP
579 \fB--whatprovides \fICAPABILITY\fB\fR
580 Query all packages that provide the \fICAPABILITY\fR capability.
581 .TP
582 \fB--whatrequires \fICAPABILITY\fB\fR
583 Query all packages that require \fICAPABILITY\fR for proper functioning.
584 .SS "PACKAGE QUERY OPTIONS:"
585 .PP
586 .TP
587 \fB--changelog\fR
588 Display change information for the package.
589 .TP
590 \fB-c, --configfiles\fR
591 List only configuration files (implies \fB-l\fR).
592 .TP
593 \fB--conflicts\fR
594 List capabilities this package conflicts with.
595 .TP
596 \fB-d, --docfiles\fR
597 List only documentation files (implies \fB-l\fR).
598 .TP
599 \fB--dump\fR
600 Dump file information as follows (implies \fB-l\fR):
601 .sp
602 .RS
603
604 .nf
605 path size mtime digest mode owner group isconfig isdoc rdev symlink
606         
607 .fi
608 .RE
609 .TP
610 \fB--filesbypkg\fR
611 List all the files in each selected package.
612 .TP
613 \fB-i, --info\fR
614 Display package information, including name, version, and description.
615 This uses the \fB--queryformat\fR if one was specified.
616 .TP
617 \fB--last\fR
618 Orders the package listing by install time such that the latest
619 packages are at the top.
620 .TP
621 \fB-L, --licensefiles\fR
622 List only license files (implies \fB-l\fR).
623 .TP
624 \fB-l, --list\fR
625 List files in package.
626 .TP
627 \fB--obsoletes\fR
628 List packages this package obsoletes.
629 .TP
630 \fB--provides\fR
631 List capabilities this package provides.
632 .TP
633 \fB-R, --requires\fR
634 List capabilities on which this package depends.
635 .TP
636 \fB--scripts\fR
637 List the package specific scriptlet(s) that are used as part
638 of the installation and uninstallation processes.
639 .TP
640 \fB-s, --state\fR
641 Display the \fIstates\fR of files in the package
642 (implies \fB-l\fR).  The state of each file is one of
643 \fInormal\fR,
644 \fInot installed\fR, or
645 \fIreplaced\fR.
646 .TP
647 \fB--triggers, --triggerscripts\fR
648 Display the trigger scripts, if any, which are contained in
649 the package.
650 .SS "VERIFY OPTIONS"
651 .PP
652 The general form of an rpm verify command is 
653 .PP
654
655 \fBrpm\fR {\fB-V|--verify\fR} [\fBselect-options\fR] [\fBverify-options\fR]
656
657 .PP
658 Verifying a package compares information about the installed files in
659 the package with information about the files taken from the package
660 metadata stored in the rpm database.  Among other things, verifying
661 compares the size, digest, permissions, type, owner and group of
662 each file.  Any discrepancies are displayed.
663 Files that were not installed from the package, for example,
664 documentation files excluded on installation using the
665 "\fB--excludedocs\fR" option,
666 will be silently ignored.
667 .PP
668 The package selection options are the same as for package
669 querying (including package manifest files as arguments).
670 Other options unique to verify mode are:
671 .TP
672 \fB--nodeps\fR
673 Don't verify dependencies of packages.
674 .TP
675 \fB--nodigest\fR
676 Don't verify package or header digests when reading.
677 .TP
678 \fB--nofiles\fR
679 Don't verify any attributes of package files.
680 .TP
681 \fB--noscripts\fR
682 Don't execute the \fB%verifyscript\fR scriptlet (if any).
683 .TP
684 \fB--nosignature\fR
685 Don't verify package or header signatures when reading.
686 .TP
687 \fB--nolinkto\fR
688 .TP
689 \fB--nofiledigest\fR (formerly \fB--nomd5\fR)
690 .TP
691 \fB--nosize\fR
692 .TP
693 \fB--nouser\fR
694 .TP
695 \fB--nogroup\fR
696 .TP
697 \fB--nomtime\fR
698 .TP
699 \fB--nomode\fR
700 .TP
701 \fB--nordev\fR
702 Don't verify the corresponding file attribute.
703 .PP
704 The format of the output is a string of 9 characters, a possible
705 attribute marker:
706
707 .nf
708 \fBc\fR \fB%config\fR configuration file.
709 \fBd\fR \fB%doc\fR documentation file.
710 \fBg\fR \fB%ghost\fR file (i.e. the file contents are not included in the package payload).
711 \fBl\fR \fB%license\fR license file.
712 \fBr\fR \fB%readme\fR readme file.
713 .fi
714
715 from the package header, followed by the file name.
716 Each of the 9 characters denotes the result of a comparison of
717 attribute(s) of the file to the value of those attribute(s) recorded
718 in the database.  A single
719 "\fB.\fR" (period)
720 means the test passed, while a single
721 "\fB?\fR" (question mark)
722 indicates the test could not be performed (e.g. file permissions
723 prevent reading). Otherwise, the (mnemonically
724 em\fBB\fRoldened) character denotes failure of
725 the corresponding \fB--verify\fR test:
726
727 .nf
728 \fBS\fR file \fBS\fRize differs
729 \fBM\fR \fBM\fRode differs (includes permissions and file type)
730 \fB5\fR digest (formerly MD\fB5\fR sum) differs
731 \fBD\fR \fBD\fRevice major/minor number mismatch
732 \fBL\fR read\fBL\fRink(2) path mismatch
733 \fBU\fR \fBU\fRser ownership differs
734 \fBG\fR \fBG\fRroup ownership differs
735 \fBT\fR m\fBT\fRime differs
736 \fBP\fR ca\fBP\fRabilities differ
737 .fi
738
739 .SS "MISCELLANEOUS COMMANDS"
740 .PP
741 .TP
742 \fBrpm\fR \fB--showrc\fR
743 shows the values \fBrpm\fR will use for all of the
744 options are currently set in
745 \fIrpmrc\fR and
746 \fImacros\fR
747 configuration file(s).
748 .TP
749 \fBrpm\fR \fB--setperms\fR \fIPACKAGE_NAME\fR
750 sets permissions of files in the given package.
751 .TP
752 \fBrpm\fR \fB--setugids\fR \fIPACKAGE_NAME\fR
753 sets user/group ownership of files in the given package.
754
755 .SS "FTP/HTTP OPTIONS"
756 .PP
757 \fBrpm\fR can act as an FTP and/or HTTP client so
758 that packages can be queried or installed from the internet.
759 Package files for install, upgrade, and query operations may be
760 specified as an
761 \fBftp\fR or
762 \fBhttp\fR
763 style URL:  
764 .PP
765 ftp://USER:PASSWORD@HOST:PORT/path/to/package.rpm
766 .PP
767 If the \fB:PASSWORD\fR portion is omitted, the password will be
768 prompted for (once per user/hostname pair). If both the user and
769 password are omitted, anonymous \fBftp\fR is used.
770 In all cases, passive (PASV) \fBftp\fR transfers are
771 performed.
772 .PP
773 \fBrpm\fR allows the following options to be used with
774 ftp URLs:
775 .TP
776 \fB--ftpproxy \fIHOST\fB\fR
777 The host \fIHOST\fR will be used as a proxy server
778 for all ftp transfers, which allows users to ftp through firewall
779 machines which use proxy systems. This option may also be specified
780 by configuring the macro \fB%_ftpproxy\fR.
781 .TP
782 \fB--ftpport \fIPORT\fB\fR
783 The TCP \fIPORT\fR number to use for
784 the ftp connection on the proxy ftp server instead of the default
785 port. This option may also be specified by configuring the macro
786 \fB%_ftpport\fR.
787 .PP
788 \fBrpm\fR allows the following options to be used with
789 \fBhttp\fR URLs:
790 .TP
791 \fB--httpproxy \fIHOST\fB\fR
792 The host \fIHOST\fR will be used as
793 a proxy server for all \fBhttp\fR transfers. This
794 option may also be specified by configuring the macro
795 \fB%_httpproxy\fR.
796 .TP
797 \fB--httpport \fIPORT\fB\fR
798 The TCP \fIPORT\fR number to use for the
799 \fBhttp\fR connection on the proxy http server instead
800 of the default port. This option may also be specified by configuring
801 the macro \fB%_httpport\fR.
802 .SH "LEGACY ISSUES"
803 .SS "Executing rpmbuild"
804 .PP
805 The build modes of rpm are now resident in the \fI/usr/bin/rpmbuild\fR 
806 executable. 
807 Install the package containing \fBrpmbuild\fR (usually \fBrpm-build\fR) and see
808 \fBrpmbuild\fR(8) for documentation of all the \fBrpm\fR build modes.
809 .SH "FILES"
810 .SS "rpmrc Configuration"
811 .PP
812 .nf
813 \fI/usr/lib/rpm/rpmrc\fR
814 \fI/usr/lib/rpm/redhat/rpmrc\fR
815 \fI/etc/rpmrc\fR
816 \fI~/.rpmrc\fR
817 .fi
818 .SS "Macro Configuration"
819 .PP
820 .nf
821 \fI/usr/lib/rpm/macros\fR
822 \fI/usr/lib/rpm/redhat/macros\fR
823 \fI/etc/rpm/macros\fR
824 \fI~/.rpmmacros\fR
825 .fi
826 .SS "Database"
827 .PP
828 .nf
829 \fI/var/lib/rpm/Basenames\fR
830 \fI/var/lib/rpm/Conflictname\fR
831 \fI/var/lib/rpm/Dirnames\fR
832 \fI/var/lib/rpm/Group\fR
833 \fI/var/lib/rpm/Installtid\fR
834 \fI/var/lib/rpm/Name\fR
835 \fI/var/lib/rpm/Obsoletename\fR
836 \fI/var/lib/rpm/Packages\fR
837 \fI/var/lib/rpm/Providename\fR
838 \fI/var/lib/rpm/Requirename\fR
839 \fI/var/lib/rpm/Sha1header\fR
840 \fI/var/lib/rpm/Sigmd5\fR
841 \fI/var/lib/rpm/Triggername\fR
842 .fi
843 .SS "Temporary"
844 .PP
845 \fI/var/tmp/rpm*\fR
846 .SH "SEE ALSO"
847
848 .nf
849 \fBpopt\fR(3),
850 \fBrpm2cpio\fR(8),
851 \fBrpmbuild\fR(8),
852 \fBrpmdb\fR(8),
853 \fBrpmkeys\fR(8),
854 \fBrpmsign\fR(8),
855 \fBrpmspec\fR(8),
856 .fi
857
858 \fBrpm --help\fR - as rpm supports customizing the options via popt aliases 
859 it's impossible to guarantee that what's described in the manual matches 
860 what's available.
861
862
863 \fBhttp://www.rpm.org/ <URL:http://www.rpm.org/>
864 \fR
865 .SH "AUTHORS"
866
867 .nf
868 Marc Ewing <marc@redhat.com>
869 Jeff Johnson <jbj@redhat.com>
870 Erik Troan <ewt@redhat.com>
871 .fi