Welcome to BYO Linux Portal  
Home · Contact · Discussion · Links · Sponsors 
 
 


 
 
BYO Linux



 
 


 
 
Installing RPM
Text VersionPrinter Friendly Version

Next we'll be installing RPM, or Redhat Package Manager. Obviously this isn't required but I thought I would include it anyways. As far as package managers go, RPM is definitely one of the most popular ones and it's very simple to use. Before we install it, we'll need two other packages first.

ZLIB Library

zlib gets the standard - configure, make, make install

Berkeley db Library

Unpack the archive and go into the packages build_unix directory. Type the following:

../dist/configure --enable-compat185 (notice two periods not one)
make
make install
ldconfig

RPM

Unpack the archive and type the following:
./configure --disable-nls
make
make install
rpm --initdb

Go ahead and remove the /usr/src/redhat directory.

A few RPM Commands to Remember

rpm -i installs a package
rpm -U upgrades a package, all older versions removed
rpm -e removes a package
rpm -qa queries the package database
rpm -ivh filename.rpm checks the packages dependencies

You will most likely have to use the --nodeps flag when using RPM because the dependencies the RPM package requires will not be there, they were installed via source code most likely and RPM doesn't know this. Example: rpm -i filename.rpm --nodeps

This would be a good place for a backup, especially before we get involved in the next chapter..