rpm cheatsheet – rpm usage

rpm -ivh {rpm-file}                            Install the package
rpm -Uvh {rpm-file}                          Upgrade package
rpm -ev {package}                           Erase/remove/ an installed package
rpm -ev –nodeps {package}            Erase/remove/ an installed package
without checking for dependencies
rpm -qa                                             Display all installed packages
rpm -qi {package}                            Display installed information
rpm -qf {/path/to/file}                      What package a file belongs to
rpm -qc {pacakge-name}                 Display list of configuration file(s)
rpm -qa –last                                   Display all recently installed RPMs
rpm -qpR {.rpm-file}
rpm -qR {package}                           Find dependencies

Leave a Reply

Your email address will not be published. Required fields are marked *