Geek Times - Using RPM to manage packages

Welcome to Geek Times!
spacer
Using RPM to manage packages
home
search
archive
about

Tux

Linux

Contents

System Administration

Hardware

Networking

Security

Software

Hardware

U. I.

3rd Parties

Mac-on-Linux

Troubleshooting


 
.
In the course of time you may want to add software to your Linux installation, or perhaps to update existing software.

RPMs are available to you on the Linux distribution media, tape or CD-ROM, on the Internet, and perhaps on a floppy (if someone gave you a package). Once you find the RPMs and copy them into a working directory you're ready to provide rpm with appropriate command-line options.

Install

rpm -ivh -vv /cdrom/software/package-1.0.0.rpm

The -ivh option results in an verbose install with hash marks to show progress. The -vv option results in very verbose output, useful to see what gets installed and where it ends up.

Once I had to use the --force option because of the following Catch-22:

# rpm -ivh pmud-0.3-2.ppc.rpm
rpm: package pmud-0.3-2.ppc.rpm is already installed.
# rpm -e pmud-0.3-2.ppc.rpm
rpm: package pmud-0.3-2.ppc.rpm is not installed
# rpm -ivh -vv --force pmud-0.3-2.ppc.rpm
[output elided]
#

Use the --test option to show what would be installed and where it would be placed without having anything actually done.

Update

rpm -Uvh -vv /cdrom/software/package-1.0.0.rpm

This time we're using the -U option to update, rather than -i to install.

Erase

rpm -e /cdrom/software/package-1.0.0.rpm

The -e option results in erasure of the previously-installed package. (The package file tells rpm where to find the components that were installed.) You may hear the erase option called delete or remove.

 

Geek Times copyright information
This page is copyrighted 1993-2006 by Geek Times, all rights reserved. Questions and comments? Send email to the Geek Times Webmaster. Web space graciously donated by rawbandwidth.com, an Internet Service Provider in San Francisco. FOO

email