8.6 Uninstalling a PackageTo uninstall a package, type: rpm -e package
In this command,
package
is the name of the package, not the name of the package file. The
rpm -e pine-4.44-13 rpm -e pine If you attempt to uninstall a package on which another package depends, RPM will report a dependency error and terminate without uninstalling the package. You can force RPM to uninstall the package by using the -- nodeps option: rpm -e --nodeps package
However, doing so will probably cause the dependent package to
|
8.7 Updating a Package
When you update (upgrade) a package, RPM
rpm -Uvh package When you update a package, RPM automatically uninstalls the old version of the package before installing the new one.
If RPM determines that your existing configuration files may be incompatible with those of the new version of the package, RPM will save a copy of the existing files. In that case, you need to examine the old and new files and determine what the proper configuration should be. The documentation that
If you attempt to update an existing package using an older version of the package, RPM will report an error and terminate without performing the update. To force RPM to perform the update, use the -- oldpackage option: rpm -Uvh --oldpackage package |
8.8 Freshening a Package
From time to time, Red Hat issues updated packages that correct functional or security-
To install an updated package, use the -F flag, which stands for freshen . For instance, to install a updated version of the gv package, issue the command: rpm -Fvh gv-3.5.8-19.i386.rpm By specifying -F rather than -U , you instruct RPM to install the updated package only if an earlier version of the package is already present. This lets you use wildcards to specify entire sets of updated packages: rpm -Fvh *.rpm This command will not install packages that aren't already installed. But, it will install updated versions of any existing packages. |
8.9 Advanced RPM Techniques
Because you invoke the
rpm
command by using the shell, just as you do any other program, you can combine options and arguments to perform a variety of useful
|