Rpm

From Wsms

Jump to: navigation, search

Note: This page should be titled rpm (all lowercase). It is Rpm due to technical limitations of Mediawiki.

rpm is short for "redhat package manager". rpm is a command as well as the file extension for the packages that rpm uses. Today, it us unusual to invoke rpm directly. In most cases, it will be invoked for you when you run yum to install or remove software.

Contents

Common Usage

[root@arthur ~]# rpm -qa                    # Generate list of installed packages
[root@arthur ~]# rpm -ivh package-name.rpm  # Install a single package
[root@arthur ~]# rpm -qil package-name      # Get information about a particular package

tips

If you mess up a file from a package, you can go back to the installed version with something like:

[root@arthur ~]# rpm -ivh --replacefiles --replacepkgs httpd-2.2.3-5.i386.rpm

/var/log/rpmpkgs

There is no log file, but when Fedora shuts down, it saves a list of installed rpms in /var/log/rpmpkgs.

See also

Yum
rpmbuild
man rpm
Rapid Program-Delivery Morsels, RPM By Marcel Gagné http://www.linuxjournal.com/article/3974

Personal tools