0% found this document useful (0 votes)
802 views1 page

Linux RPM Cheat Sheet

The document provides a cheat sheet for using the rpm command to install, update, query, remove, and manage packages on Linux systems such as Red Hat, Suse, and Fedora. It lists the main rpm commands and syntax, and provides examples of how to use each command.

Uploaded by

Sam Alvear
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
802 views1 page

Linux RPM Cheat Sheet

The document provides a cheat sheet for using the rpm command to install, update, query, remove, and manage packages on Linux systems such as Red Hat, Suse, and Fedora. It lists the main rpm commands and syntax, and provides examples of how to use each command.

Uploaded by

Sam Alvear
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Linux rpm cheat sheet http://www.cyberciti.biz/howto/question/linux/linux-rpm-cheat-sheet.

php

rpm Linux cheat sheet


Quick Links:
Home Questions Linux

rpm command cheat sheet for Linux


Subscribe
rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query,
Subscribe to mail newslette r verify, update, and remove/erase individual software packages. A Package consists of an archive of files, and
package information, including name, version, and description:

Syntax Description Example(s)


rpm -ivh mozilla-
mail-1.7.5-17.i586.rpm
rpm -ivh {rpm-file} Install the package
rpm -ivh --test mozilla-
mail-1.7.5-17.i586.rpm
rpm -Uvh mozilla-
mail-1.7.6-12.i586.rpm
rpm -Uvh {rpm-file} Upgrade package
rpm -Uvh --test mozilla-
mail-1.7.6-12.i586.rpm
rpm -ev {package} Erase/remove/ an installed package rpm -ev mozilla-mail
Erase/remove/ an installed package
rpm -ev --nodeps {package} rpm -ev --nodeps mozilla-mail
without checking for dependencies
rpm -qa
rpm -qa Display list all installed packages
rpm -qa | less
Display installed information along
rpm -qi {package} with package version and short rpm -qi mozilla-mail
description
Find out what package a file belongs
rpm -qf /etc/passwd
rpm -qf {/path/to/file} to i.e. find what package owns the
rpm -qf /bin/bash
file
Display list of configuration file(s)
rpm -qc {pacakge-name} rpm -qc httpd
for a package
Display list of configuration files for
rpm -qcf {/path/to/file} rpm -qcf /usr/X11R6/bin/xeyes
a command
Display list of all recently installed rpm -qa --last
rpm -qa --last
RPMs rpm -qa --last | less
rpm -qpR mediawiki-
rpm -qpR {.rpm-file} Find out what dependencies a rpm
1.4rc1-4.i586.rpm
rpm -qR {package} file has
rpm -qR bash
{package} - Replace with actual package name

0
Related articles

Linux: Debian package management cheat sheet with an in-depth explanation


apt-get command cheat sheet for Debian Linux

2005 nixCraft - Disclaimer - Privacy policy

Tips & Tricks | Email

1 of 1 7/15/2012 4:21 PM

You might also like