rpm-i | Install a package Useful options to -i: |
--excludedocs: Does not install documentation to save space | |
--replacepkgs: Replaces the package with a new copy of itself | |
--force: The 'big hammer' — Ignores all warnings and installs anyway | |
--noscripts: Does not execute any pre- or post-install scripts | |
--nodeps: Ignores any dependencies | |
--root : Sets an alternative root to path | |
rpm -e | Erase (deletes) a package. Useful option to -e: |
--nodeps: Ignores any dependencies | |
rpm -U | Upgrade a package, removing the older one but keeping modified files, such as configurations. Useful options to -U: |
--oldpackage: Permits downgrading to an older version | |
Other options are the same as with rpm -i | |
rpm -q | Query about package information. Useful options to -q: |
-p | |
-f | |
--whatprovides : Determines what packages provide | |
--whatrequires Determines what packages require | |
-i: Summarizes the package information | |
-l: Lists the files in package | |
--scripts: Displays the contents of any install, uninstall, or verifies scripts | |
--provides: Displays the capabilities package provides | |
--requires: Displays the capabilities package requires | |
rpm -V | Verify packages against the RPM database .Useful options to - V: |
-a: Verifies all installed packages | |
rpm -K | Use GPG to verify a downloaded package Useful options to - K: |
--nosignature: If you lack public GPG encryption keys, do not have GPG installed, or are legally prohibited from using GPG, this still verifies the package using size and MD5 checksums. |
Вы читаете Fedora™ Unleashed, 2008 edition
