LinuxDevCenter.com
oreilly.comSafari Books Online.Conferences.

advertisement


Red Hat and Debian GNU/Linux Package Managers
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9

Information selection options

-c, --configfiles

List configuration files in the package.

--changelog

Display the log of change information for the package.

-d, --docfiles

List documentation files in the package.

--dump

Dump information for each file in the package. This option must be used with at least one of -l, -c, or -d. The output includes the following information in this order:

path size mtime md5sum mode owner group isconfig isdoc rdev symlink

--filesbypkg

List all files in each package.

-i

Display package information, including the name, version, and description.

-l, --list

List all files in the package.

--last

List packages by install time, with the latest packages listed first.

--provides

List the capabilities this package provides.

-R, --requires

List any packages this package depends on.

-s, --state

List each file in the package and its state. The possible states are normal, not installed, or replaced.

--scripts

List any package-specific shell scripts used during installation and uninstallation of the package.

Uninstall options

The syntax for the uninstall command is:

rpm -e package_name
rpm --erase package_name

The uninstall options are:



--allmatches

Remove all versions of the package. Only one package should be specified; otherwise, an error results.

--nodeps

Don't check dependencies before uninstalling the package.

--noscripts

Don't execute any preuninstall or postuninstall scripts.

--notriggers

Don't execute any scripts triggered by the removal of this package.

--test

Don't really uninstall anything; just go through the motions.

Verify options

The syntax for the verify command is:

rpm -V|-y| -- verify[package-selection-options]

Verify mode compares information about the installed files in a package with information about the files that came in the original package and displays any discrepancies. The information compared includes the size, MD5 sum, permissions, type, owner, and group of each file. Uninstalled files are ignored.

The package selection options include those available for query mode, as well as the following:

--nofiles

Ignore missing files.

--nomd5

Ignore MD5 checksum errors.

--nopgp

Ignore PGP checking errors.

The output is formatted as an eight-character string, possibly followed by a "c" to indicate a configuration file, and then the filename. Each of the eight characters in the string represents the result of comparing one file attribute to the value of that attribute from the RPM database. A period (.) indicates that the file passed that test. The following characters indicate failure of the corresponding test:

5MD5 sum
DDevice
GGroup
LSymlink
MMode (includes permissions and file type)
SFile size
TMtime
UUser

Database rebuild options

The syntax of the command to rebuild the RPM database is:

rpm --rebuilddb [options]

You also can build a new database:

rpm --initdb [options]

The options available with the database rebuild mode are the --dbpath and --root options described earlier under "General options".

Signature check options

RPM packages may have a PGP signature built into them. PGP configuration information is read from /etc/rpmrc. The syntax of the signature-check mode is:

rpm --checksig package_file...
rpm -K package_file...

The signature-checking options are:

--nogpg

Don't check any GPG signatures.

--nomd5

Don't check any MD5 signatures.

--nopgp

Don't check any PGP signatures.

Two other options let you add signatures to packages:

--addsign binary-pkgfile...

Generate and append new signatures to those that already exist in the specified binary packages.

--resign binary-pkgfile...

Generate and insert new signatures in the specified binary packages, removing any existing signatures.

Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9

Next Pagearrow




Linux Online Certification

Linux/Unix System Administration Certificate Series
Linux/Unix System Administration Certificate Series — This course series targets both beginning and intermediate Linux/Unix users who want to acquire advanced system administration skills, and to back those skills up with a Certificate from the University of Illinois Office of Continuing Education.

Enroll today!


Linux Resources
  • Linux Online
  • The Linux FAQ
  • linux.java.net
  • Linux Kernel Archives
  • Kernel Traffic
  • DistroWatch.com


  • Sponsored by: