Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th February 2009, 11:32 AM
dj-toonz Offline
Registered User
 
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36
how to clean up left over obsolete packages no longer needed

hi all, when you install a software package in FC10 say for example wine, it installs loads of other stuff with it. but when you goto do su -c 'yum remove wine' it only removes the wine package, not the other stuff it installed with the package, how do you remove the other stuff. when i used to use Ubuntu. i could do sudo apt-get autoremove & autoclean to remove all the left over rubbish,. what i'm asking is how do you clean up the obsolete packages no longer needed by any other package installed on the system cheers
Reply With Quote
  #2  
Old 14th February 2009, 11:51 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
yum install yum-remove-with-leaves

Then:
yum --remove-with-leaves <insert-package-name(s)>

But it's seriously busted (was last time I checked - we had a thread and a bug report that's still open ?). Search the forums, you'll find it....

V
Reply With Quote
  #3  
Old 14th February 2009, 01:08 PM
dj-toonz Offline
Registered User
 
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36
Thank you for the reply, work's like a charm. i tried it with yum --remove-with-leaves wine first but it came up with no --remove-with-leaves then i tried yum remove wine and it worked, said it needed to erase 13 files, 13 files what got installed when i installed wine :cool, so it works 100% on my system. cheers again for teaching me something new that i didn't know about
Reply With Quote
  #4  
Old 14th February 2009, 01:12 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
I'm glad to hear it's working as expected - last time I tried it, it wanted to virtually erase my OS !!!

V
Reply With Quote
  #5  
Old 14th February 2009, 01:40 PM
bee Offline
Banned
 
Join Date: Jun 2008
Posts: 1,315
Lightbulb

he'll change idea soon
I suggest to keep remove-with-leaves disabled by default, and manually enable that plugin only when you are going to uninstall something
  • To disable remove-with-leaves
Open this file:
/etc/yum/pluginconf.d/remove-with-leaves.conf
and set:
enabled = 0
  • Using remove-with-leaves
Open a new terminal and type:
Code:
yum --enableplugin=remove-with-leaves remove packageslist
In that way, you could keep remove-with-leaves installed (and use it) without fearing to having your system wiped away at each update

bye!!!!!!
Reply With Quote
  #6  
Old 14th February 2009, 05:34 PM
dj-toonz Offline
Registered User
 
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36
Thx Bee, a very good tip, I never even know you could disable Plugins without removing them & thanx for the advice, I've disabled it, I'll keep it on the machine just in case i need to remove a big software package again tho, cheers for the heads up
Reply With Quote
  #7  
Old 14th February 2009, 06:16 PM
bee Offline
Banned
 
Join Date: Jun 2008
Posts: 1,315
very good!!! you're welcome!!!!!!

bye!!!!!!
Reply With Quote
  #8  
Old 14th February 2009, 06:27 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
You can also install the "yum-utils" package. It includes many useful package management tools, among which is "package-cleanup" that can be used to identify the no-longer-needed packages, among others.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #9  
Old 14th February 2009, 06:56 PM
dj-toonz Offline
Registered User
 
Join Date: Aug 2008
Location: Manchester , United Kingdom
Age: 38
Posts: 36
this is what i've got enabled right now Loaded plugins: fastestmirror, refresh-packagekit. I have got yum-utils installed but how do you use them ? the leaves plugin has been disabled
Reply With Quote
  #10  
Old 14th February 2009, 08:54 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Read: man package-cleanup

Short story (run as root for best results):
> To find duplicate package: package-cleanup --dupes
> To find broken dependencies: package-cleanup --problems
> To find libraries not required by any other package(s): package-cleanup --leaves (CAUTION: just because a library is not REQUIRED does NOT mean it is useless - it may provide useful functionality feature(s) for other package(s)).
> To find all packages not required by any other package: package-cleanup --leaves --all (see CAUTION above)
> To find packages not originating from enabled repositories: package-cleanup --orphans

V

Last edited by Hlingler; 14th February 2009 at 09:09 PM.
Reply With Quote
Reply

Tags
clean, left, longer, needed, obsolete, packages

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Packages needed for Unetbootin. ashmew2 Using Fedora 0 21st September 2008 06:07 PM
Software Updater and Add/Remove Packages no longer runs jbob286 Using Fedora 6 25th January 2007 10:44 PM
Needed Packages to compile Rick069 Using Fedora 2 7th June 2006 04:31 AM
clean smb.conf from FC4- needed alerav EOL (End Of Life) Versions 2 17th March 2006 09:37 PM
Add/Remove Packages no longer recognizes the CDs Erebus Using Fedora 5 10th August 2004 05:51 PM


Current GMT-time: 11:58 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat