LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-01-2010, 03:41 PM   #1
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 262

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 03:47 PM.
 
Old 09-01-2010, 03:56 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,017
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
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.)
 
  


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


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

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