Script started on Sun Sep 29 20:08:06 2002 # Check to see if lynx already installed on the system. It appears that it is not though there are some support files for lynx are present in /usr/share subdirectories. [barrie@magnolia ~]$ which lynx lynx: Command not found. [barrie@magnolia ~]$ locate lynx /home/barrie/lynxinstallrpm /usr/share/doc/vim-common-6.1/syntax/lynx.vim /usr/share/vim/vim61/syntax/lynx.vim /usr/share/services/useragentstrings/lynxoncurrent.desktop /usr/share/gnome/help/gedit/C/images/lynx.png /usr/share/gnome/help/gedit/ja/images/lynx.png /usr/X11R6/lib/X11/config/lynx.cf /lib/modules/2.4.18-3/kernel/drivers/ieee1394/pcilynx.o # Retrieve the lynx RPM file from ibiblio [barrie@magnolia ~]$ wget http://distro.ibiblio.org/pub/Linux/distributions/redh at/7.3/en/os/i386/RedHat/RPMS/lyncx-2.8.4-18.i386.rpm --20:08:57-- http://distro.ibiblio.org/pub/Linux/distributions/redhat/7.3/en/os/i386/RedHat/RPMS/lynx-2.8.4-18.i386.rpm => `lynx-2.8.4-18.i386.rpm' Resolving distro.ibiblio.org... done. Connecting to distro.ibiblio.org[152.2.210.109]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1,539,499 [audio/x-pn-realaudio-plugin] 0% [ ] 0 --.--K/s ETA --:-- 0% [ ] 12,828 25.57K/s ETA 00:58 1% [ ] 20,128 26.78K/s ETA 00:55 1% [ ] 23,048 23.69K/s ETA 01:02 2% [ ] 31,808 27.01K/s ETA 00:54 2% [> ] 44,948 26.95K/s ETA 00:54 3% [> ] 46,408 24.71K/s ETA 00:59 3% [> ] 52,248 24.65K/s ETA 00:58 4% [> ] 63,928 27.04K/s ETA 00:53 5% [> ] 77,068 28.48K/s ETA 00:50 5% [> ] 79,988 27.40K/s ETA 00:52 5% [=> ] 87,288 27.23K/s ETA 00:52 6% [=> ] 97,508 28.33K/s ETA 00:49 6% [=> ] 106,268 29.07K/s ETA 00:48 7% [=> ] 117,948 30.53K/s ETA 00:45 8% [==> ] 131,088 32.21K/s ETA 00:42 9% [==> ] 148,608 34.63K/s ETA 00:39 10% [==> ] 164,668 36.55K/s ETA 00:36 11% [===> ] 180,728 37.31K/s ETA 00:35 11% [===> ] 183,648 34.56K/s ETA 00:38 12% [===> ] 188,028 33.87K/s ETA 00:38 12% [===> ] 199,140 34.23K/s ETA 00:38 13% [====> ] 208,468 34.15K/s ETA 00:38 14% [====> ] 220,148 34.78K/s ETA 00:37 15% [====> ] 233,288 34.77K/s ETA 00:36 15% [====> ] 237,668 34.12K/s ETA 00:37 16% [====> ] 247,888 34.57K/s ETA 00:36 16% [=====> ] 259,568 35.06K/s ETA 00:35 17% [=====> ] 274,168 34.71K/s ETA 00:35 18% [=====> ] 281,468 34.69K/s ETA 00:35 18% [=====> ] 287,308 34.38K/s ETA 00:35 19% [======> ] 301,908 35.12K/s ETA 00:34 20% [======> ] 312,128 34.86K/s ETA 00:34 20% [======> ] 316,508 34.42K/s ETA 00:34 21% [======> ] 326,728 34.65K/s ETA 00:34 22% [=======> ] 339,868 35.23K/s ETA 00:33 23% [=======> ] 358,848 35.65K/s ETA 00:32 23% [=======> ] 363,228 35.15K/s ETA 00:32 24% [=======> ] 371,988 35.20K/s ETA 00:32 24% [========> ] 383,668 35.57K/s ETA 00:31 25% [========> ] 399,728 36.36K/s ETA 00:30 27% [========> ] 415,788 37.10K/s ETA 00:29 28% [=========> ] 431,848 37.81K/s ETA 00:28 29% [=========> ] 447,908 38.07K/s ETA 00:28 31% [==========> ] 480,028 40.04K/s ETA 00:25 32% [===========> ] 501,928 41.04K/s ETA 00:24 33% [===========> ] 520,908 40.96K/s ETA 00:24 35% [============> ] 550,108 42.37K/s ETA 00:22 36% [============> ] 567,628 43.04K/s ETA 00:22 38% [=============> ] 585,148 43.62K/s ETA 00:21 38% [=============> ] 599,748 43.97K/s ETA 00:20 40% [=============> ] 615,808 44.41K/s ETA 00:20 41% [==============> ] 636,248 45.09K/s ETA 00:19 42% [==============> ] 652,308 45.57K/s ETA 00:19 43% [===============> ] 669,828 46.10K/s ETA 00:18 44% [===============> ] 685,888 46.46K/s ETA 00:17 45% [===============> ] 697,568 46.59K/s ETA 00:17 46% [================> ] 712,168 46.93K/s ETA 00:17 47% [================> ] 736,988 47.89K/s ETA 00:16 49% [=================> ] 754,508 48.35K/s ETA 00:15 50% [=================> ] 770,568 48.68K/s ETA 00:15 51% [=================> ] 785,168 48.81K/s ETA 00:15 51% [==================> ] 795,388 48.78K/s ETA 00:14 52% [==================> ] 811,448 49.15K/s ETA 00:14 53% [==================> ] 824,588 49.28K/s ETA 00:14 54% [===================> ] 842,108 49.66K/s ETA 00:13 55% [===================> ] 858,168 49.98K/s ETA 00:13 56% [====================> ] 874,228 50.31K/s ETA 00:12 57% [====================> ] 882,988 50.20K/s ETA 00:12 58% [====================> ] 901,968 50.60K/s ETA 00:12 59% [=====================> ] 919,488 50.96K/s ETA 00:11 60% [=====================> ] 929,708 50.95K/s ETA 00:11 61% [=====================> ] 947,228 51.28K/s ETA 00:11 62% [======================> ] 963,288 51.55K/s ETA 00:10 63% [======================> ] 980,808 51.86K/s ETA 00:10 64% [======================> ] 993,948 51.94K/s ETA 00:10 65% [=======================> ] 1,010,008 52.16K/s ETA 00:09 66% [=======================> ] 1,027,528 52.49K/s ETA 00:09 67% [========================> ] 1,043,588 52.67K/s ETA 00:09 68% [========================> ] 1,061,108 52.93K/s ETA 00:08 70% [========================> ] 1,080,088 53.33K/s ETA 00:08 71% [=========================> ] 1,096,148 53.57K/s ETA 00:08 72% [=========================> ] 1,120,968 54.20K/s ETA 00:07 73% [==========================> ] 1,138,488 54.50K/s ETA 00:07 74% [==========================> ] 1,147,248 54.28K/s ETA 00:07 75% [==========================> ] 1,163,308 54.52K/s ETA 00:06 76% [===========================> ] 1,177,908 54.65K/s ETA 00:06 77% [===========================> ] 1,199,808 55.09K/s ETA 00:06 79% [============================> ] 1,224,628 55.68K/s ETA 00:05 80% [============================> ] 1,243,608 55.93K/s ETA 00:05 82% [=============================> ] 1,262,588 56.20K/s ETA 00:04 82% [=============================> ] 1,269,888 55.94K/s ETA 00:04 83% [==============================> ] 1,291,788 56.34K/s ETA 00:04 85% [==============================> ] 1,312,228 56.73K/s ETA 00:03 86% [==============================> ] 1,326,828 56.80K/s ETA 00:03 87% [===============================> ] 1,345,808 57.04K/s ETA 00:03 88% [===============================> ] 1,364,788 57.30K/s ETA 00:02 89% [================================> ] 1,380,848 57.41K/s ETA 00:02 90% [================================> ] 1,399,828 57.66K/s ETA 00:02 91% [=================================> ] 1,415,888 57.78K/s ETA 00:02 93% [=================================> ] 1,436,328 58.06K/s ETA 00:01 94% [=================================> ] 1,452,388 58.15K/s ETA 00:01 95% [==================================> ] 1,466,988 58.21K/s ETA 00:01 96% [==================================> ] 1,481,588 58.32K/s ETA 00:00 97% [===================================> ] 1,499,108 58.54K/s ETA 00:00 98% [===================================> ] 1,515,168 58.65K/s ETA 00:00 99% [===================================> ] 1,531,228 58.80K/s ETA 00:00 100%[====================================>] 1,539,499 58.75K/s ETA 00:00 20:09:23 (58.75 KB/s) - `lynx-2.8.4-18.i386.rpm' saved [1539499/1539499] # Consult the man file on rpm for installation options and syntax [barrie@magnolia ~]$ man rpm RPM(8) Red Hat Linux RPM(8) NAME rpm - RPM Package Manager SYNOPSIS QUERYING AND VERIFYING PACKAGES: rpm {-q|--query} [select-options] [query-options] rpm {-V|--verify} [select-options] [--nodeps] [--nofiles] [--nomd5] [--noscripts] rpm {-K|--checksig} [--nogpg] [--nopgp] [--nomd5] PACK- AGE_FILE ... INSTALLING, UPGRADING, AND REMOVING PACKAGES: rpm {-i|--install} [install-options] PACKAGE_FILE ... rpm {-U|--upgrade} [install-options] PACKAGE_FILE ... rpm {-F|--freshen} [install-options] PACKAGE_FILE ... rpm {-e|--erase} [--allmatches] [--nodeps] [--noscripts] :RPM(8) Red Hat Linux RPM(8)  NAME  rpm - RPM Package Manager  SYNOPSIS  QUERYING AND VERIFYING PACKAGES:  rpm {-q|--query} [select-options] [query-options]   rpm {-V|--verify} [select-options] [--nodeps] [--nofiles]  [--nomd5] [--noscripts]   rpm {-K|--checksig} [--nogpg] [--nopgp] [--nomd5] PACK-  AGE_FILE ...   INSTALLING, UPGRADING, AND REMOVING PACKAGES:  rpm {-i|--install} [install-options] PACKAGE_FILE ...   rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...   rpm {-F|--freshen} [install-options] PACKAGE_FILE ...   rpm {-e|--erase} [--allmatches] [--nodeps] [--noscripts]  [--notriggers] [--repackage] [--test] PACKAGE_NAME ...   BUILDING PACKAGES:  rpm {-ba|-bb|-bp|-bc|-bi|-bl|-bs} [build-options] SPECFILE  ...   rpm {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [build-options] TARBALL  ...   rpm {--rebuild|--recompile} SOURCEPKG ...  : MISCELLANEOUS: rpm {--initdb|--rebuilddb} rpm {--addsign|--resign} PACKAGE_FILE ... rpm {--querytags|--showrc} rpm {--setperms|--setugids} PACKAGE_NAME ... SELECT-OPTIONS [PACKAGE_NAME] [-a,--all] [-f,--file FILE] [-g,--group GROUP] [-p,--package PACKAGE_FILE] [--query- bynumber NUMBER] [--triggeredby PACKAGE_NAME] [--whatpro- vides CAPABILITY] [--whatrequires CAPABILITY] QUERY-OPTIONS [--changelog] [-c,--configfiles] [-d,--docfiles] [--dump] [--filesbypkg] [-i,--info] [--last] [-l,--list] [--pro- vides] [--qf,--queryformat QUERYFMT] [-R,--requires] [--scripts] [-s,--state] [--triggers,--triggerscripts] INSTALL-OPTIONS [--allfiles] [--badreloc] [--excludepath OLDPATH] [--excludedocs] [--force] [-h,--hash] [--ignoresize] [--ignorearch] [--ignoreos] [--includedocs] [--justdb] [--nodeps] [--noorder] [--noscripts] [--notriggers] [--oldpackage] [--percent] [--prefix NEWPATH] [--relo- cate OLDPATH=NEWPATH] [--repackage] [--replacefiles] [--replacepkgs] [--test] BUILD-OPTIONS [--buildroot DIRECTORY] [--clean] [--nobuild] [--rmsource] [--rmspec] [--short-circuit] [--sign] [--target PLATFORM] :DESCRIPTION rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individ- ual software packages. A package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages. One of the following basic modes must be selected: Query, Verify, Signature Check, Install/Upgrade/Freshen, Unin- stall, Build Package, Build Package from Tarball, Recom- pile Package, Initialize Database, Rebuild Database, Resign, Add Signature, Set Owners/Groups, Show Querytags, and Show Configuration. GENERAL OPTIONS These options can be used in all the different modes. -?, --help Print a longer usage message then normal. --version Print a single line containing the version number of rpm being used. --quiet Print as little as possible - normally only error messages will be displayed. -v Print verbose information - normally routine : progress messages will be displayed. -vv Print lots of ugly debugging information. --rcfile FILELIST Each of the files in the colon separated FILELIST is read sequentially by rpm for configuration information. Only the first file in the list must exist, and tildes will be expanded to the value of $HOME. The default FILELIST is /usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc. --pipe CMD Pipes the output of rpm to the command CMD. --dbpath DIRECTORY Use the database in DIRECTORY rathen than the default path /var/lib/rpm --root DIRECTORY Use the system rooted at DIRECTORY for all opera- tions. Note that this means the database will be read or modified under DIRECTORY and any %pre or %post scriptlet(s) are run after a chroot(2) to DIRECTORY. INSTALL AND UPGRADE OPTIONS The general form of an rpm install command is rpm {-i|--install} [install-options] PACKAGE_FILE ... This installs a new package. The general form of an rpm upgrade command is :: rpm {-U|--upgrade} [install-options] PACKAGE_FILE ... This upgrades or installs the package currently installed to a newer version. This is the same as install, except all other version(s) of the package are removed after the new package is installed. rpm {-F|--freshen} [install-options] PACKAGE_FILE ... This will upgrade packages, but only if an earlier version currently exists. The PACKAGE_FILE may be specified as an ftp or http URL, in which case the package will be down- loaded before being installed. See FTP/HTTP OPTIONS for information on rpm's internal ftp and http client support. --allfiles Installs or upgrades all the missingok files in the package, regardless if they exist. --badreloc Used with --relocate, permit relocations on all file paths, not just those OLDPATH's included in the binary package relocation hint(s). --excludepath OLDPATH Don't install files whose name begins with OLDPATH. --excludedocs Don't install any files which are marked as docu- mentation (which includes man pages and texinfo documents). --force : Same as using --replacepkgs, --replacefiles, and --oldpackage. -h, --hash Print 50 hash marks as the package archive is unpacked. Use with -v|--verbose for a nicer dis- play. --ignoresize Don't check mount file systems for sufficient disk space before installing this package. --ignorearch Allow installation or upgrading even if the archi- tectures of the binary package and host don't match. --ignoreos Allow installation or upgrading even if the operat- ing systems of the binary package and host don't match. --includedocs Install documentation files. This is the default behavior. --justdb Update only the database, not the filesystem. --nodeps Don't do a dependency check before installing or upgrading a package. --noorder : Don't reorder the packages for an install. The list of packages would normally be reordered to satisfy dependancies. --noscripts --nopre --nopost --nopreun --nopostun Don't execute the scriptlet of the same name. The --noscripts option is equivalent to --nopre --nopost --nopreun --nopostun and turns off the execution of the corresponding %pre, %post, %preun, and %postun scriptlet(s). --notriggers --notriggerin --notriggerun --notriggerpostun Don't execute any trigger scriptlet of the named type. The --notriggers option is equivalent to --notriggerin --notriggerun --notriggerpostun and turns off execution of the corresponding %trig- : gerin, %triggerun, and %triggerpostun scriptlet(s). --oldpackage Allow an upgrade to replace a newer package with an older one. --percent Print percentages as files are unpacked from the package archive. This is intended to make rpm easy to run from other tools. --prefix NEWPATH For relocateable binary packages, translate all file paths that start with the installation prefix in the package relocation hint(s) to NEWPATH. --relocate OLDPATH=NEWPATH For relocatable binary packages, translate all file paths that start with OLDPATH in the package relo- cation hint(s) to NEWPATH. This option can be used repeatedly if several OLDPATH's in the package are to be relocated. --repackage Re-package the files before erasing. The previously installed package will be named according to the macro %_repackage_name_fmt and will be created in the directory named by the macro %_repackage_dir (default value is /var/tmp). --replacefiles Install the packages even if they replace files from other, already installed, packages. : --replacepkgs Install the packages even if some of them are already installed on this system. --nobuild Do not install the package, simply check for and report potential conflicts. QUERY OPTIONS The general form of an rpm query command is rpm {-q|--query} [select-options] [query-options] You may specify the format that package information should be printed in. To do this, you use the {--qf|--queryformat} QUERYFMT option, followed by the QUERYFMT format string. Query formats are modifed ver- sions of the standard printf(3) formatting. The format is made up of static strings (which may include standard C character escapes for newlines, tabs, and other special characters) and printf(3) type formatters. As rpm already knows the type to print, the type specifier must be omit- ted however, and replaced by the name of the header tag to be printed, enclosed by {} characters. Tag names are case insesitive, and the RPMTAG_ portion of the tag name may be omitted as well. Alternate output formats may be requested by following the tag with :typetag. Currently, the following types are supported: octal, date, shescape, perms, fflags, and depflags. For example, to print only the names of the packages queried, you could use %{NAME} as the format string. To print the packages name and distribution information in two columns, you could use %-30{NAME}%{DIS- : TRIBUTION}. rpm will print a list of all of the tags it knows about when it is invoked with the --querytags argu- ment. There are two subsets of options for querying: package selection, and information selection. PACKAGE SELECTION OPTIONS: PACKAGE_NAME Query installed package named PACKAGE_NAME. -a, --all Query all installed packages. -f, --file FILE Query package owning FILE. -g, --group GROUP Query packages with the group of GROUP. -p, --package PACKAGE_FILE Query an (uninstalled) package PACKAGE_FILE. The PACKAGE_FILE may be specified as an ftp or http style URL, in which case the package header will be downloaded and queried. See FTP/HTTP OPTIONS for information on rpm's internal ftp and http client support. The PACKAGE_FILE argument(s), if not a binary package, will be interpreted as an ASCII package manifest. Comments are permitted, starting with a '#', and each line of a package manifest file may include white space seperated glob expres- sions, including URL's with remote glob expres- sions, that will be expanded to paths that are sub- stituted in place of the package manifest as addi- : tional PACKAGE_FILE arguments to the query. --querybynumber NUMBER Query the NUMBERth database entry directly; this is useful only for debugging. --specfile SPECFILE Parse and query SPECFILE as if it were a package. Although not all the information (e.g. file lists) is available, this type of query permits rpm to be used to extract information from spec files without having to write a specfile parser. --triggeredby PACKAGE_NAME Query packages that are triggered by package(s) PACKAGE_NAME. --whatprovides CAPABILITY Query all packages that provide the CAPABILITY capability. --whatrequires CAPABILITY Query all packages that requires CAPABILITY for proper functioning. PACKAGE QUERY OPTIONS: --changelog Display change information for the package. -c, --configfiles List only configuration files (implies -l). -d, --docfiles List only documentation files (implies -l). : --dump Dump file information as follows: path size mtime md5sum mode owner group isconfig isdoc rdev symlink This option must be used with at least one of -l, -c, -d. --filesbypkg List all the files in each selected package. -i, --info Display package information, including name, ver- sion, and description. This uses the --queryformat if one was specified. --last Orders the package listing by install time such that the latest packages are at the top. -l, --list List files in package. --provides List capabilities this package provides. -R, --requires List packages on which this package depends. --scripts List the package specific scriptlet(s) that are used as part of the installation and uninstallation processes. -s, --state Display the states of files in the package (implies : -l). The state of each file is one of normal, not installed, or replaced. --triggers, --triggerscripts Display the trigger scripts, if any, which are con- tained in the package. VERIFY OPTIONS The general form of an rpm verify command is rpm {-V|--verify} [select-options] [--nodeps] [--nofiles] [--nomd5] [--noscripts] Verifying a package compares information about the installed files in the package with information about the files taken from the package metadata stored in the rpm database. Among other things, verifying compares the size, MD5 sum, permissions, type, owner and group of each file. Any discrepencies are displayed. Files that were not installed from the package, for example, documentation files excluded on installation using the "--excludedocs" option, will be silently ignored. The package selection options are the same as for package querying (including package manifest files as arguments). Other options that can be used only in verify mode are: --nodeps Don't verify dependencies. --nofiles Don't verify files. --nomd5 : Don't verify file MD5 checksums. --noscripts Don't execute the %verifyscript scriptlet (if any). The format of the output is a string of 8 characters, a possible "c" denoting a configuration file, and then the file name. Each of the 8 characters denotes the result of a comparison of attribute(s) of the file to the value of those attribute(s) recorded in the database. A single "." (period) means the test passed, while a single "?" indi- cates the test could not be performed (e.g. file permis- sions prevent reading). Otherwise, the (mnemonically emBoldened) character denotes failure of the corresponding --verify test: S file Size differs M Mode differs (includes permissions and file type) 5 MD5 sum differs D Device major/minor number mis-match L readLink(2) path mis-match U User ownership differs G Group ownership differs T mTime differs SIGNATURE CHECKING The general form of an rpm signature check command is : rpm --checksig [--nogpg] [--nopgp] [--nomd5] PACKAGE_FILE ... This checks the GPG signature of package PACKAGE_FILE to ensure its integrity and origin. GPG configuration infor- mation is read from configuration files. See the section on GPG SIGNATURES for details. ERASE OPTIONS The general form of an rpm erase command is rpm {-e|--erase} [--allmatches] [--nodeps] [--noscripts] [--notriggers] [--repackage] [--test] PACKAGE_NAME ... The following options may also be used: --allmatches Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACK- AGE_NAME matches multiple packages. --nodeps Don't check dependencies before uninstalling the packages. --noscripts --nopreun --nopostun Don't execute the scriptlet of the same name. The --noscripts option during package erase is equiva- lent to : --nopreun --nopostun and turns off the execution of the corresponding %preun, and %postun scriptlet(s). --notriggers --notriggerun --notriggerpostun Don't execute any trigger scriptlet of the named type. The --notriggers option is equivalent to --notriggerun --notriggerpostun and turns off execution of the corresponding %trig- gerun, and %triggerpostun scriptlet(s). --repackage Re-package the files before erasing. The previously installed package will be named according to the macro %_repackage_name_fmt and will be created in the directory named by the macro %_repackage_dir (default value is /var/tmp). --test Don't really uninstall anything, just go through the motions. Useful in conjunction with the -vv option for debugging. BUILD OPTIONS The general form of an rpm build command is rpm {-bSTAGE|-tSTAGE} [build-options] FILE ... : The argument used is -b if a spec file is being used to build the package and -t if rpm should look inside of a (possibly compressed) tar file for the spec file to use. After the first argument, the next character (STAGE) spec- ifies the stages of building and packaging to be done and is one of: -ba Build binary and source packages (after doing the %prep, %build, and %install stages). -bb Build a binary package (after doing the %prep, %build, and %install stages). -bp Executes the "%prep" stage from the spec file. Nor- mally this involves unpacking the sources and applying any patches. -bc Do the "%build" stage from the spec file (after doing the %prep stage). This generally involves the equivalent of a "make". -bi Do the "%install" stage from the spec file (after doing the %prep and %build stages). This generally involves the equivalent of a "make install". -bl Do a "list check". The "%files" section from the spec file is macro expanded, and checks are made to verify that each file exists. -bs Build just the source package. The following options may also be used: : --buildroot DIRECTORY When building a package, override the BuildRoot tag with directory DIRECTORY. --clean Remove the build tree after the packages are made. --nobuild Do not execute any build stages. Useful for testing out spec files. --rmsource Remove the sources after the build (may also be used standalone, e.g. "rpm --rmsource foo.spec"). --rmspec Remove the spec file after the build (may also be used standalone, eg. "rpm --rmspec foo.spec"). --short-circuit Skip straight to specified stage (i.e., skip all stages leading up to the specified stage). Only valid with -bc and -bi. --sign Embed a GPG signature in the package. This signa- ture can be used to verify the integrity and the origin of the package. See the section on GPG SIG- NATURES for configuration details. --target PLATFORM When building the package, interpret PLATFORM as arch-vendor-os and set the macros %_target, %_tar- get_arch, and %_target_os accordingly. : REBUILD AND RECOMPILE OPTIONS There are two other ways to invoke building with rpm: rpm {--rebuild|--recompile} SOURCEPKG ... When invoked this way, rpm installs the named source pack- age, and does a prep, compile and install. In addition, --rebuild builds a new binary package. When the build has completed, the build directory is removed (as in --clean) and the the sources and spec file for the package are removed. SIGNING A PACKAGE rpm {--addsign|--resign} PACKAGE_FILE ... The --addsign option generates and inserts new signatures for each package. Any existing signatures will be dis- carded. The --resign option generates and appends signatures for the listed packages while preserving the existing signa- tures. GPG SIGNATURES In order to use the signature feature, rpm must be config- ured to run GPG and be able to find a public key ring with Red Hat (or other vendor) public keys. By default, rpm uses the same conventions as GPG to find key rings, namely the $GPGPATH environment variable. If your key rings are not located where GPG expects them to be, you will need to configure the macro %_gpg_path to be the location of the GPG key rings to use. If you want to be able to sign packages you create your- : self, you also need to create your own public and secret key pair (see the GPG manual). You will also need to con- figure the macros %_signature The signature type. Right now only gpg and pgp are supported. %_gpg_name The name of the "user" whose key you wish to use to sign your packages. When building packages you then add --sign to the command line. You will be prompted for your pass phrase, and your package will be built and signed. For example, to be able to use GPG to sign packages as the user "John Doe " from the key rings located in /etc/rpm/.gpg using the executable /usr/bin/gpg you would include %_signature gpg %_gpg_path /etc/rpm/.gpg %_gpg_name John Doe %_gpgbin /usr/bin/gpg in a macro configuration file. Use /etc/rpm/macros for per-system configuration and ~/.rpmmacros for per-user configuration. REBUILD DATABASE OPTIONS The general form of an rpm rebuild database command is rpm {--initdb|--rebuilddb} [-v] [--dbpath DIRECTORY] [--root DIRECTORY] : Use --initdb to create a new database, use --rebuilddb to rebuild the database indices from the installed package headers. SHOWRC The command rpm --showrc shows the values rpm will use for all of the options are currently set in rpmrc and macros configuration file(s). FTP/HTTP OPTIONS rpm can act as an FTP and/or HTTP client so that packages can be queried or installed from the internet. Package files for install, upgrade, and query operations may be specified as an ftp or http style URL: ftp://USER:PASSWORD@HOST:PORT/path/to/package.rpm If the :PASSWORD portion is omitted, the password will be prompted for (once per user/hostname pair). If both the user and password are omitted, anonymous ftp is used. In all cases, passive (PASV) ftp transfers are performed. rpm allows the following options to be used with ftp URLs: --ftpproxy HOST The host HOST will be used as a proxy server for all ftp transfers, which allows users to ftp through firewall machines which use proxy systems. This option may also be specified by configuring the macro %_ftpproxy. : --ftpport HOST The TCP PORT number to use for the ftp connection on the proxy ftp server instead of the default port. This option may also be specified by config- uring the macro %_ftpport. rpm allows the following options to be used with http URLs: --httpproxy HOST The host HOST will be used as a proxy server for all http transfers. This option may also be speci- fied by configuring the macro %_httpproxy. --httpport PORT The TCP PORT number to use for the http connection on the proxy http server instead of the default port. This option may also be specified by config- uring the macro %_httpport. FILES /usr/lib/rpm/rpmrc /etc/rpmrc ~/.rpmrc /usr/lib/rpm/macros /etc/rpm/macros ~/.rpmmacros : /var/lib/rpm/Conflictname /var/lib/rpm/Basenames /var/lib/rpm/Group /var/lib/rpm/Name /var/lib/rpm/Packages /var/lib/rpm/Providename /var/lib/rpm/Requirename /var/lib/rpm/Triggername /var/tmp/rpm* SEE ALSO popt(3), rpm2cpio(8), rpmbuild(8), http://www.rpm.org/ AUTHORS Marc Ewing Jeff Johnson Erik Troan :Red Hat, Inc. 06 June 2001 RPM(8) # Consult rpm --help [barrie@magnolia ~]$ rmp --helppm --help Usage: rpm [OPTION...] Query options (with -q or --query): -c, --configfiles list all configuration files -d, --docfiles list all documentation files --dump dump basic file information -l, --list list files in package --queryformat=QUERYFORMAT use the following query format -s, --state display the states of the listed files -v, --verbose display a verbose file listing -a, --all query/verify all packages -f, --file query/verify package(s) owning file -g, --group query/verify package(s) in group -p, --package query/verify a package file (i.e. a binary *.rpm file) --querytags display known query tags --specfile query a spec file --whatrequires query/verify the package(s) which require a dependency --whatprovides query/verify the package(s) which provide a dependency Verify options (with -V or --verify): --nomd5[|=0x1] don't verify MD5 digest of files --nofiles[|=0x10000] don't verify files in package --nodeps[|=0x20000] don't verify package dependencies --noscript[|=0x40000] don't execute %verifyscript (if any) -a, --all query/verify all packages -f, --file query/verify package(s) owning file -g, --group query/verify package(s) in group -p, --package query/verify a package file (i.e. a binary *.rpm file) --querytags display known query tags --specfile query a spec file --whatrequires query/verify the package(s) which require a dependency --whatprovides query/verify the package(s) which provide a dependency Signature options: --addsign add a signature to a package --resign sign a package (discard current signature) -K, --checksig verify package signature --nogpg[&=~0x4] skip any GPG signatures --nomd5[&=~0x2] do not verify file md5 checksums Database options: --initdb initialize database --rebuilddb rebuild database inverted lists from installed package headers Install/Upgrade/Erase options: --allfiles[|=0x40] install all files, even configurations which might otherwise be skipped --allmatches[|=0x2] remove all packages which match (normally an error is generated if specified multiple packages) --badreloc[|=0x8] relocate files in non-relocateable package -e, --erase=+ erase (uninstall) package --excludedocs[|=0x20] do not install documentation --excludepath= skip files with leading component --force[|=0x74] short hand for --replacepkgs --replacefiles -F, --freshen=+ upgrade package(s) if already installed -h, --hash[|=0x2] print hash marks as package installs (good with -v) --ignorearch[|=0x2] don't verify package architecture --ignoreos[|=0x1] don't verify package operating system --ignoresize[|=0x180] don't check disk space before installing --includedocs install documentation --install=+ install package --justdb[|=0x8] update the database, but do not modify the filesystem --nodeps do not verify package dependencies --noorder[|=0x8] do not reorder package installation to satisfy dependencies --noscripts[|=0xff0000] do not execute package scriptlet(s) --notriggers[|=0x990000] do not execute any scriptlet(s) triggered by this package --oldpackage[|=0x40] upgrade to an old version of the package (--force on upgrades does this automatically) --percent[|=0x1] print percentages as package installs --prefix= relocate the package to , if relocatable --relocate== relocate files from path to --repackage[|=0x400] save erased package files by repackaging --replacefiles[|=0x30] install even if the package replaces installed files --replacepkgs[|=0x4] reinstall if the package is already present --test[|=0x1] don't install, but tell if it would work or not -U, --upgrade=+ upgrade package(s) Common options for all rpm modes: --version print the version of rpm being used --quiet provide less detailed output -v, --verbose provide more detailed output --define=' ' define macro with value --eval=+ print macro expansion of + -r, --root= use as the top level directory (default: "/") --macros= read instead of default macro file(s) --rcfile= read instead of default rpmrc file(s) --showrc display final rpmrc and macro configuration Options implemented via popt alias/exec: --scripts list install/erase scriptlets from package(s) --setperms set permissions of files in a package --setugids set user/group ownership of files in a package --conflicts list capabilities this package conflicts with --obsoletes list other packages removed by installing this package --provides list capabilities that this package provides --requires list capabilities required by package(s) --info list descriptive information from package(s) --changelog list change logs for this package --triggers list trigger scriptlets from package(s) --last list package(s) by install time, most recent first --filesbypkg list all files from each package --redhatprovides find package name that contains a provided capability (needs rpmdb-redhat package installed) --redhatrequires find package name that contains a required capability (needs rpmdb-redhat package installed) --buildpolicy= set buildroot (e.g. compress man pages) --with=