LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Package dependencies (https://www.linuxquestions.org/questions/fedora-35/package-dependencies-826846/)

skoinga 08-17-2010 03:22 PM

Package dependencies
 
Hi,

I would like to remove openldap from my Centos home-server..

Centos offers me:

Quote:

Removing:
openldap i386 2.3.43-12.el5_5.2 installed 592 k
openldap x86_64 2.3.43-12.el5_5.2 installed 598 k
Removing for dependencies:
apr-util i386 1.2.7-11.el5 installed 164 k
apr-util x86_64 1.2.7-11.el5 installed 170 k
authconfig x86_64 5.3.21-6.el5 installed 1.7 M
cyrus-sasl x86_64 2.1.22-5.el5_4.3 installed 2.5 M
gnupg x86_64 1.4.5-14.el5_5.1 installed 4.4 M
httpd x86_64 2.2.3-43.el5.centos installed 3.3 M
libsmbclient x86_64 3.0.33-3.29.el5_5 installed 2.2 M
libuser x86_64 0.54.7-2.1.el5_4.1 installed 1.6 M
mod_ssl x86_64 1:2.2.3-43.el5.centos installed 179 k
mod_suphp x86_64 0.7.1-1.el5.rf installed 2.1 M
nagios x86_64 3.2.1-5.el5.rf installed 7.3 M
nagios-plugins-nrpe x86_64 2.12-1.el5.rf installed 43 k
passwd x86_64 0.73-1 installed 27 k
php x86_64 5.1.6-27.el5 installed 6.2 M
php-mcrypt x86_64 5.1.6-15.el5.centos.1 installed 37 k
phpmyadmin noarch 2.11.10-2.el5.rf installed 13 M
postfix x86_64 2:2.3.3-2.1.el5_2 installed 8.3 M
pure-ftpd x86_64 1.0.21-1.el5.rf installed 635 k
samba x86_64 3.0.33-3.29.el5_5 installed 30 M
samba-client x86_64 3.0.33-3.29.el5_5 installed 14 M
samba-common x86_64 3.0.33-3.29.el5_5 installed 16 M
squid x86_64 7:2.6.STABLE21-6.el5 installed 3.7 M
subversion x86_64 1.6.12-0.1.el5.rf installed 24 M
system-config-language noarch 1.1.18-3.el5 installed 157 k
usermode x86_64 1.88-3.el5.2 installed 539 k

Transaction Summary
==================================================================================================== ==========================================
Remove 27 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
..obviously I'll not remove openldap by this operation.. but my question is: there is another way to remove a single package with yum without "consequences"? :)

MensaWater 08-17-2010 03:32 PM

yum is specifically designed to deal with dependencies.

rpm is used for individual packages.

BUT!!!

If yum is saying it is removing the other packages it is saying they are dependent upon the ones you are trying to remove (or others that are that should therefore also be removed). The rpm command on the other hand will complain about dependencies but may not show you dependencies those have (this is called dependency hell and is the main reason yum was created).

Putting it more simply: If you need all those other packages you probably need to keep the open-ldap ones.

I note you didn't actually list the yum command you tried to run. It may be you used unexpected syntax. If you put it here we can see if it looks right.

DrLove73 08-17-2010 03:52 PM

Not if developers intentionally made it dependency for bunch of services and daemons. You might fool yum, but your services will most likely fail starting/running.

skoinga 08-18-2010 04:35 AM

Quote:

Originally Posted by MensaWater (Post 4069402)

I note you didn't actually list the yum command you tried to run. It may be you used unexpected syntax. If you put it here we can see if it looks right.

Just "yum remove openldap.i386"

RockDoctor 08-19-2010 06:02 PM

You've got the proper command syntax, but it won't execute (on my Fedora 14 install) because yum apparently depends on something that depends on openldap.

Bottom line: live with the 750K or so taken up by openldap


All times are GMT -5. The time now is 05:43 PM.