Linux rpm cheat sheet
1 of 1
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 Subscribe to mail newslette r
rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query, , update, and remove/erase individual software packages. A Package consists of an archive of files, and package information, including name, version, and description: Syntax rpm -ivh {rpm-file}
rpm -Uvh {rpm-file} rpm -ev {package} rpm -ev --nodeps {package} rpm -qa rpm -qi {package}
rpm -qf {/path/to/file} rpm -qc {pacakge-name} rpm -qcf {/path/to/file} rpm -qa --last rpm -qpR {.rpm-file} rpm -qR {package}
Description
Example(s) rpm -ivh mozillamail-1.7.5-17.i586.rpm Install the package rpm -ivh --test mozillamail-1.7.5-17.i586.rpm rpm -Uvh mozillamail-1.7.6-12.i586.rpm Upgrade package rpm -Uvh --test mozillamail-1.7.6-12.i586.rpm Erase/remove/ an installed package rpm -ev mozilla-mail Erase/remove/ an installed package rpm -ev --nodeps mozilla-mail without checking for dependencies rpm -qa Display list all installed packages rpm -qa | less Display installed information along with package version and short rpm -qi mozilla-mail description Find out what package a file belongs rpm -qf /etc/wd to i.e. find what package owns the rpm -qf /bin/bash file Display list of configuration file(s) rpm -qc httpd for a package Display list of configuration files for rpm -qcf /usr/X11R6/bin/xeyes a command Display list of all recently installed rpm -qa --last RPMs rpm -qa --last | less rpm -qpR mediawikiFind out what dependencies a rpm 1.4rc1-4.i586.rpm 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 - Tips & Tricks | Email
7/15/2012 4:21 PM