Syntax Description Example
rpm -ivh {rpm-file} Install the package rpm -ivh mozilla-mail-1.7.5-17.i586.rpm
rpm -Uvh {rpm-file} Upgrade package rpm -Uvh mozilla-mail-1.7.6-12.i586.rpm
rpm -ev {package} Erase packae rpm -ev mozilla-mail
rpm -ev --nodeps {package} Erase with out removing dependencies rpm -ev --nodeps mozilla-mail
rpm -qa List installed packages rpm -qa
rpm -qi {package} Display installed rpm -qi mozilla-mail
information along with
package version and
short description
rpm -qf {/path/to/file} Find out what packagea file belongs rpm -qf /etc/passwd,rpm -qf /bin/bash
rpm -qc {pacakge-name} Display configuration file(s) for a package rpm -qc httpd
rpm -qcf {/path/to/file} Display list of configuration files for a command rpm -qcf /usr/X11R6/bin/xeyes
rpm -qa --last List recent installed rpm -qa --last
rpm -qpR {.rpm-file} Find out what dependencies a rpm file has rpm -qpR mediawiki- 1.4rc1-4.i586.rpm
rpm -qR {package} Find dependency of comm rpm -qR bash
rpm -ivh {rpm-file} Install the package rpm -ivh mozilla-mail-1.7.5-17.i586.rpm
rpm -Uvh {rpm-file} Upgrade package rpm -Uvh mozilla-mail-1.7.6-12.i586.rpm
rpm -ev {package} Erase packae rpm -ev mozilla-mail
rpm -ev --nodeps {package} Erase with out removing dependencies rpm -ev --nodeps mozilla-mail
rpm -qa List installed packages rpm -qa
rpm -qi {package} Display installed rpm -qi mozilla-mail
information along with
package version and
short description
rpm -qf {/path/to/file} Find out what packagea file belongs rpm -qf /etc/passwd,rpm -qf /bin/bash
rpm -qc {pacakge-name} Display configuration file(s) for a package rpm -qc httpd
rpm -qcf {/path/to/file} Display list of configuration files for a command rpm -qcf /usr/X11R6/bin/xeyes
rpm -qa --last List recent installed rpm -qa --last
rpm -qpR {.rpm-file} Find out what dependencies a rpm file has rpm -qpR mediawiki- 1.4rc1-4.i586.rpm
rpm -qR {package} Find dependency of comm rpm -qR bash