Upgrading a Package

You can use RPM to upgrade a package on your system, to get a later release of the package, or to get a newer version of software on your system. Upgrading a package is logically the same as removing the currently installed package and installing a new one. However, using the upgrade feature makes these steps a single operation. This enables you to avoid dependency and other file conflict problems that might arise if you perform the steps separately. Use the -U (uppercase U) option with rpm to upgrade a package on your system. For example, if you had already installed perl-5.00503 on your system and wanted to upgrade to perl-5.6.0, you would download the new perl package and upgrade using the following as root:

 # rpm -U perl-5.6.0-1.i386.rpm ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.