Pick a Free OS

User login

Navigation

RPM usage for newbies

--replacefiles = If you get a package with newer versions of a file and

you would like to install it then use this option to replace the files.

--force = Force the installation to go ahead regardless of any

errors. Failed dependencies will still stop it though.

--nodeps = Package dependencies are any packages that are required by a

certain software. Fetchmail may require sendmail or some other mail server

to be present on your system. Sendmail is the package dependency for

fetchmail. You might have some other mail server installed, like qmail,

and you want to go ahead and install fetchmail. Adding --nodeps to the

command line tells rpm to skip the checkup for any dependency packages and

to go ahead and install fetchmail.

Another place this option is very useful is when you have packages that

require each other. So package A will say that package B should be

installed, but package B will want A to be installed first. Just install

one of the packages with --nodeps before you go on to install the other

one.

RPM can also install over the net. If you happen to know the full url of

your rpm file then just enter the following to get and install the

package.

rpm -ivh ftp://ftp.linux.tucows.com/pub/RedHat/foo.rpm

If the site requires a valid login and password pair then you can enter

that in the url too.

rpm -ivh ftp://yahoo@ftp.linux.tucows.com/put/RedHat/foo.rpm

You will be prompted for the password after which the file will be

downloaded and installed.

Updating

Updating your current package installation. If you come across a updated

package then upgrading would be the right choice. Syntax is pretty much

the same as installation. The default behaviour of this command is that

rpm will first check for a older version of the package. If one is found

then that package is updated otherwise normal installation is done. This

is the recommended command to use because it prevents you from installing

multiple versions of the same package.

rpm -Uvh filename.rpm

Un-Installation

An package installed via rpm can be uninstalled by rpm -e

The package name would be the name of the package at installation.