Commands Help : rpm

  •  RPM Package Manager

[SYNOPSIS] rpm OPTION PACKAGE
option
-iThis installs a new package
# rpm -i package
-FThis will upgrade packages, but only if an earlier version currently exists
# rpm -F package
-UThis upgrades or installs the package currently installed to a newer version
# rpm -U package
-eerase (uninstall) package
# rpm -e package
-qquery packages
# rpm -q package
-Vverify installed packages
# rpm -V package
-Kverify package signature
# rpm -K package
--rebuilddbrebuild the database indices from the installed package headers
# rpm --rebuilddb
--initdbcreate a new database if one doesn’t already exist
# rpm --initdb
--importimport PUBKEY
# rpm --import /usr/share/rhn/RPM-GPG-KEY
options with i, U
-vshow package name
# rpm -iv package
-hdisplay progress
# rpm -ivh package
-vvPrint lots of ugly debugging information
# rpm -ivv package
--nodepsDon’t do a dependency check before installing or upgrading a package
# rpm -ivh --nodeps package
--testDon’t really uninstall anything, just go through the motions
# rpm -ivh --test package
options with q
-aQuery all installed packages
# rpm -qa
-iDisplay package information, including name, version, and description. This uses the --queryformat if one was specified
# rpm -qi package
-lList files in package
# rpm -ql package
-cList only configuration files (implies -l)
# rpm -qc package
-dList only documentation files (implies -l)
# rpm -qd package
-fQuery package owning FILE
# rpm -qf /bin/bash
-RList packages on which this package depends
# rpm -qR package
-sDisplay the states of files in the package (implies -l)
# rpm -qs package
--lastOrders the package listing by install time such that the latest packages are at the top
# rpm -q --last package
--changelogDisplay change information for the package
# rpm -q --changelog package

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

Java : Variables Declaring

SQL Self JOIN