Uninstalling - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Chapter 10. Package Management with RPM
Preparing...
file /usr/bin/foo from install of foo-1.0-1 conflicts with file from package bar-2.0.20
To make RPM ignore this error, use the --replacefiles option:
rpm -ivh --replacefiles foo-1.0-1.i386.rpm
10.2.2.3. Unresolved Dependency
RPM packages may sometimes depend on other packages, which means that they require other
packages to be installed to run properly. If you try to install a package which has an unresolved
dependency, output similar to the following is displayed:
error: Failed dependencies:
bar.so.2 is needed by foo-1.0-1
Suggested resolutions:
bar-2.0.20-3.i386.rpm
If you are installing a package from the Red Hat Enterprise Linux CD-ROM set, it usually suggest
the package(s) needed to resolve the dependency. Find the suggested package(s) on the Red Hat
Enterprise Linux CD-ROMs or from Red Hat Network , and add it to the command:
rpm -ivh foo-1.0-1.i386.rpm bar-2.0.20-3.i386.rpm
If installation of both packages is successful, output similar to the following is displayed:
Preparing...
1:foo
2:bar
If it does not suggest a package to resolve the dependency, you can try the -q --whatprovides
option combination to determine which package contains the required file.
rpm -q --whatprovides bar.so.2
To force the installation anyway (which is not recommended since the package may not run correctly),
use the --nodeps option.

10.2.3. Uninstalling

Uninstalling a package is just as simple as installing one. Type the following command at a shell
prompt:
rpm -e foo
124
########################################### [100%]
########################################### [100%]
########################################### [ 50%]
########################################### [100%]

Advertisement

Table of Contents
loading

Table of Contents