LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2010, 05:35 AM   #1
digsecurity
Member
 
Registered: Apr 2010
Posts: 54

Rep: Reputation: 18
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
 
Old 08-11-2010, 06:13 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,228

Rep: Reputation: 128Reputation: 128
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.
 
Old 08-12-2010, 09:48 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,281

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
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 ).
..
 
Old 08-12-2010, 10:27 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,015

Rep: Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454Reputation: 2454
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 .
 
Old 08-13-2010, 05:17 AM   #5
digsecurity
Member
 
Registered: Apr 2010
Posts: 54

Original Poster
Rep: Reputation: 18
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
 
  


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
yum remove without dependencies aclhkaclhk Linux - Software 1 01-26-2010 05:08 AM
How to remove a Package including its dependencies.. thekillerbean Linux - Software 1 10-24-2009 09:13 PM
Remove a package and all it's dependencies in Ubuntu 8.10? crazyfuturamanoob Linux - Software 3 01-08-2009 11:55 AM
package remove through yum ? LinuxLover Linux - Server 1 04-12-2008 05:29 AM
Remove dependencies when removing a package kushalkoolwal Debian 6 06-28-2007 02:53 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration