RPM Command
Posted by Planet Malaysia on December 7, 2007
RPM is a powerful Package Manager for major Linux distributions such as Red Hat and SuSE. RPM can be used to build, install, query, verify, update, and remove individual software packages.
01. Install the software package
rpm -ivh {rpm_file}
02. Upgrade package
rpm -Uvh {rpm_file}
03. Erase/remove/ an installed package
rpm -e {package}
04. Erase/remove/ an installed package without checking for dependencies
rpm -ev –nodeps {package}
05. Display list all installed packages
rpm -qa {.rpm_file}
06. Display installed information along with package version and short description
rpm -qi {package}
07. Find out what package a file belongs to
rpm -qf {/path/to/file}
08. Display list of configuration file(s) for a package
rpm -qc {package_name}
09. Display list of configuration files for a command
rpm -qcf {/path/to/file}
10. Find out what dependencies a rpm file has
rpm -qpR {.rpm_file}
rpm -qR {package}
11. Display list of all recently installed RPMs
rpm -qa –last
12. Verifying that a package is no longer installed by entering
rpm -qa|grep {search_rpm_name}
13. Showing all the files installed by the package
rpm -ql {package_name}
14. Viewing the documentation files for the command
rpm -qd {command}
15. Listing all files included in the not yet installed RPM package by entering the following:
rpm -qpl {/path/to/rpm_file}
16. Seeing what has changed in the files on your hard drive since the RPM was originally installed
rpm -V {package_name}
17. Extracting RPM file using rpm2cpio and cpio command
rpm2cpio {.rpm_file} | cpio -idmv
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
- WP Contact Form III – You do not have sufficient permissions to access this page Error
Comments
One Response to “RPM Command”
Leave a Reply
These two RPM command are useful too.
rpm -Fvh {rpmfile}
rpm -ev –force –nodeps {rpmfile}