LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-24-2009, 09:02 PM   #1
thekillerbean
Member
 
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 89

Rep: Reputation: 16
How to remove a Package including its dependencies..


I recently installed rtorrent on a server in order to download the CentOS 5.4 DVD. I then decided against using this particular server and instead installed it on a different one.

When I initially installed rtorrent, I installed two other packages to satisfy rtorrent's dependencies as shown below:
Code:
Dependencies Resolved

================================================================================
 Package            Arch        Version                   Repository       Size
================================================================================
Installing:
 rtorrent           i386        0.8.4-2.el5.rf            rpmforge        448 k
Installing for dependencies:
 libsigc++20        i386        2.0.17-1.el5.rf           rpmforge        1.8 M
 libtorrent         i386        0.12.4-1.el5.rf           rpmforge        3.6 M

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

Total size: 5.9 M
Is this ok [y/N]: y
However, when uninstalling, it seems yum will _only_ remove the rtorrent package and leave the other dependencies it installed on my system - obviously taking up HDD space for nought:
Code:
Dependencies Resolved

================================================================================
 Package          Arch         Version                  Repository         Size
================================================================================
Removing:
 rtorrent         i386         0.8.4-2.el5.rf           installed         1.3 M

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

Is this ok [y/N]:
So, is there another solution (like maybe installing a yum-... package that does this) other than removing the other packages individually?

Tia,
tkb.
 
Old 10-24-2009, 09:13 PM   #2
thekillerbean
Member
 
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 89

Original Poster
Rep: Reputation: 16
On removing the other two packages, I also noticed that if I attempt to remove libsigc++20, it will also remove libtorrent for dependencies:
Code:
Dependencies Resolved

================================================================================
 Package            Arch        Version                  Repository        Size
================================================================================
Removing:
 libsigc++20        i386        2.0.17-1.el5.rf          installed         11 M
Removing for dependencies:
 libtorrent         i386        0.12.4-1.el5.rf          installed        9.3 M

Transaction Summary
================================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       2 Package(s)
However, removal of libtorrent will not remove libsigc++20:
Code:
Dependencies Resolved

================================================================================
 Package           Arch        Version                   Repository        Size
================================================================================
Removing:
 libtorrent        i386        0.12.4-1.el5.rf           installed        9.3 M

Transaction Summary
================================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       1 Package(s)
So obviously, if a package installed numerous dependencies (MythTV for instance) and one wanted to remove it, it would be wiser to format and begin again IMO!

I thought yum came along to take care of dependency hell, but it appears it resolves that problem for the install phase but not the uninstall phase! Or maybe, just maybe I'm not aware of a yum-... package that resolves this issue - anyone care to enlighten me, please?


tia,
tkb.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Python package including numpy , scipy,mpi4py , pycxx , symeig madani Linux - Software 1 03-14-2009 06:22 PM
Remove a package and all it's dependencies in Ubuntu 8.10? crazyfuturamanoob Linux - Software 3 01-08-2009 11:55 AM
Remove dependencies when removing a package kushalkoolwal Debian 6 06-28-2007 02:53 PM
apt-get remove and dependencies wrongman Debian 3 05-21-2004 03:57 PM
Istalling rpm INCLUDING dependencies via command line? rgerhards Linux - Software 1 10-08-2003 03:35 AM


All times are GMT -5. The time now is 06:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration