YUM does not deal with dependencies when remove a package...

Jiri Tyr <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Hello,

I have got a problem with dependencies when wan to remove some package
from the system. For instance, when I have installed the httpd, couple
of packages has been installed along with:

# yum install httpd
Loading "tsflags" plugin
Loading "protectbase" plugin
Loading "kernel-module" plugin
Loading "changelog" plugin
Loading "skip-broken" plugin
553 packages excluded due to repository protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-11.sl5.3.1 set to be updated
--> Processing Dependency: /etc/mime.types for package: httpd
--> Processing Dependency: libapr-1.so.0 for package: httpd
--> Processing Dependency: libaprutil-1.so.0 for package: httpd
--> Running transaction check
---> Package apr.i386 0:1.2.7-11 set to be updated
---> Package mailcap.noarch 0:2.1.23-1.fc6 set to be updated
---> Package apr-util.i386 0:1.2.7-7.el5 set to be updated
--> Processing Dependency: libpq.so.4 for package: apr-util
--> Running transaction check
---> Package postgresql-libs.i386 0:8.1.11-1.el5_1.1 set to be updated
--> Finished Dependency Resolution
Beginning Kernel Module Plugin
Finished Kernel Module Plugin

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 httpd                   i386       2.2.3-11.sl5.3.1  slc5-os
1.1 M
Installing for dependencies:
 apr                     i386       1.2.7-11         slc5-os           123 k
 apr-util                i386       1.2.7-7.el5      slc5-os            76 k
 mailcap                 noarch     2.1.23-1.fc6     slc5-os            15 k
 postgresql-libs         i386       8.1.11-1.el5_1.1  slc5-os
196 k

Transaction Summary
=============================================================================
Install      5 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 1.5 M
Is this ok [y/N]:
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: apr                          ######################### [1/5]
  Installing: mailcap                      ######################### [2/5]
  Installing: postgresql-libs              ######################### [3/5]
  Installing: apr-util                     ######################### [4/5]
  Installing: httpd                        ######################### [5/5]

Installed: httpd.i386 0:2.2.3-11.sl5.3.1
Dependency Installed: apr.i386 0:1.2.7-11 apr-util.i386 0:1.2.7-7.el5
mailcap.noarch 0:2.1.23-1.fc6 postgresql-libs.i386 0:8.1.11-1.el5_1.1
Complete!


When I tried to remove the httpd, yum did not deal with the dependencies
and want to remove only the httpd (the dependencies stays installed in
the system):

# yum remove httpd
Loading "tsflags" plugin

Loading "protectbase" plugin

Loading "kernel-module" plugin

Loading "changelog" plugin

Loading "skip-broken" plugin

Setting up Remove Process

553 packages excluded due to repository protections

Resolving Dependencies

--> Running transaction check

---> Package httpd.i386 0:2.2.3-11.sl5.3.1 set to be erased
--> Finished Dependency Resolution
Beginning Kernel Module Plugin
Finished Kernel Module Plugin

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 httpd                   i386       2.2.3-11.sl5.3.1  installed
2.8 M

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       1 Package(s)

Is this ok [y/N]:


Please, can you give me an advice what I am doing wrong?

Best regards,
Jiri
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.