LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove a package along with its dependencies with yum (https://www.linuxquestions.org/questions/linux-newbie-8/remove-a-package-along-with-its-dependencies-with-yum-825518/)

digsecurity 08-11-2010 05:35 AM

remove a package along with its dependencies with yum
 
Hi all,
I have installed a package having almost 145 dependencies. Now when I want to remove the package (yum remove packagename) only the single package is removed..

Is there a way to remove the package including all its dependencies?

Thanks

r3sistance 08-11-2010 06:13 AM

Hi,

Unless it's installed as a group this fundamentally would not be a good idea to begin with as the dependencies are likely to be shared with other packages. If you have installed any other packages it becomes difficult to know what dependencies are actually still needed as the dependency itself does not know what applications/packages/programs use it.

knudfl 08-12-2010 09:48 PM

Quote:

.. the dependency itself does not know what
applications/packages/programs use it.
It will tell, when you try to remove it.

You may trace the packages with :
rpm -qa --last > last-packages.txt
Which will save a list with date and time.
( With the last installed package at line 1 ).
..

John VV 08-12-2010 10:27 PM

i am assuming this is fedora 13
knowing WHAT the rpm is would help
as stated above if it is a "group" you installed then the group can be uninstalled
BUT if 1 ( one ) rpm needed 145 dependencies ( that is UNHEARD OF )
unless you installed kDE Wrong and did not groupinstall it .

digsecurity 08-13-2010 05:17 AM

Actually I was trying to build a rpm from its source named "schooltool" which usages lots of zope and python packages. When I installed schooltool it installed all the dependencies as I have mentioned on the .spec file(the dependencies itself have lot of dependencies). But when I try to remove the package It just removed the single package.

I was just wondering if I could remove all the dependencies while removing the package 'schooltool'.

Sorry..I should have mentioned this earlier..

thankx


All times are GMT -5. The time now is 09:44 PM.