RPM Command cheat sheet to Install, Uninstall, Upgrade, Query RPM Packages
RPM command is used for installing, uninstalling, upgrading, querying, listing, and checking RPM packages on your Linux system.
RPM stands for Red Hat Package Manager.
With root privilege, you can use the rpm command with appropriate options to manage the RPM software packages.
RPM stands for Red Hat Package Manager.
With root privilege, you can use the rpm command with appropriate options to manage the RPM software packages.
Syntax | Description |
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 list all installed packages |
rpm -qi {package} | Display installed information along with package version and short description |
rpm -qf {/path/to/file} | Find out what package a file belongs to i.e. find what package owns the file |
rpm -qc {pacakge-name} | Display list of configuration file(s) for a package |
rpm -qcf {/path/to/file} | Display list of configuration files for a command |
rpm -qa --last | Display list of all recently installed RPMs |
rpm -qpR {.rpm-file} | Find out what dependencies a rpm file has |
rpm -qR {package} |
Comments
Post a Comment