Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-01-2010, 04:41 PM   #1
Registered: Mar 2007
Distribution: Fedora
Posts: 263

Rep: Reputation: 23
erase package with its dependencies

Dear friends,
I am in fc13, have installed a package, realise lately that its not really useful. that package install a lot of package for dependency.
How can i erase all the package together that was downloaded and installed together with the target package as dependency via yum?
actually i have done it using
#yum erase `cat /var/log/yum.log|grep "Aug 31 22" |awk '{print $5}'|`

as I know when I have installed them.....but is there ant safer and better way?

Last edited by RudraB; 09-01-2010 at 04:47 PM.
Old 09-01-2010, 04:56 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,517
Blog Entries: 15

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
One thing you could have done is removed them using rpm instead of yum. Since rpm checks for dependencies but doesn't add or delete them like yum it would have errored out if you had tried to delete an rpm that yum previously installed if something else was dependent on it. You'd want to give the whole list to your rpm command at once so it could check the list to see if the dependency is being met by another rpm you're erasing. (If you tried to remove them individually you'd run into dependency hell which is what yum was created to avoid.)


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
Package dependencies skoinga Fedora 4 08-19-2010 07:02 PM
how to uninstall a package having dependencies uxan Linux - General 10 02-29-2008 11:28 AM
Package Dependencies newinlinux Slackware 5 09-01-2005 11:23 AM
Package dependencies Ytsejammer Linux - Software 2 12-24-2004 10:59 AM
Package and there Dependencies jmdlcar Slackware 4 05-11-2004 11:11 PM > Forums > Linux Forums > Linux - Newbie

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

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