RPM Commands Cheat sheet


RPM is a package management system. RPM was intended primarily for GNU/Linux distributions; the file format is the baseline package format of the Linux Standard Base.

Following commands can help you to manage your day to day task with .rpm files.

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

Related content:

  1. Dowloading source RPM in fedora
  2. PHP 5.3 on CentOS
  3. How to get JRE (Java) working under Chrome Fedora
  4. Package Installation and Updates in Ubuntu
  5. NVU web authoring system for creating web pages

Subscribe / Share

Article by Vidyadhar

My name is Vidyadhar Sarmalkar & I work as a consultant and have done RHCE & CCNA.
Vidyadhar tagged this post with: , , , , , , , , , , , Read 229 articles by

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Notify me of followup comments via e-mail. You can also subscribe without commenting.

rss twitter facbook

Categories

Archives

Buffer