Fedora Linux Support Community & Resources Center
  #1  
Old 10th August 2012, 01:30 PM
sidd2
Guest
 
Posts: n/a
linuxfirefox
Cleaning up unused RPMs

Lately I have been installing apps, testing them than removing. I am aware that there is a long list of libs that were installed as dependencies and are probably unused in the today's configuration. Probably a good idea would have been to just write down what gets installed. Anyway, in the past years I have used only Synaptic with DEBs. There you can see remove orphaned packs. Now, how can I do that with Yum, Yumex or whatever?
Reply With Quote
  #2  
Old 10th August 2012, 02:14 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Cleaning up unused RPMs

If you have yum plugin remove-with-leaves it will remove those would-be-orphaned packages automatically.
If there are leftovers in your system you can check that with package-cleanup (from yum-utils).
Reply With Quote
  #3  
Old 10th August 2012, 02:14 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,852
linuxchrome
Re: Cleaning up unused RPMs

yum can do that. Let's say you did "yum install xyz", and yum installed 3 more packages as dependencies for the xyz package.
Code:
sudo yum history list
will show you the last 20 transactions. Each transaction is given a number (first column). If your xyz install is in that list, you can do:
Code:
sudo yum history undo transaction_number
For transactions older than the last 20 shown, you'll need to specify that particular transaction by number, e.g.:
Code:
sudo yum history info 455
to identify the right transaction. You could:
Code:
sudo grep xyz /var/log/yum.log
to find the date you installed package xyz and it's dependencies, and use that date to home in on the yum history transaction.

See "man yum" and "yum history help"
Reply With Quote
  #4  
Old 10th August 2012, 02:19 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: Cleaning up unused RPMs

Try rpmorphan

Code:
su
yum install rpmorphan
Reply With Quote
  #5  
Old 12th August 2012, 08:55 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 887
linuxfirefox
Re: Cleaning up unused RPMs

To list unused library packages, you can use
Code:
package-cleanup --leaves
(The package-cleanup command is part of the yum-utils package.)
Reply With Quote
  #6  
Old 12th August 2012, 11:30 PM
DupermanDave Offline
Registered User
 
Join Date: Mar 2011
Posts: 56
unknownfirefox
Re: Cleaning up unused RPMs

I'm just curious, but why hasnt there been a feature yet that finds dates the packages were last used and then says ,"hey man. looks like you havent used GIMP in ages. Want to uninstall it and its dependencies?" Or maybe just a feature built into yum that lets you sort by install date? By yum i mean the graphical yum front ends like apper and whatever is on gnome.
Reply With Quote
  #7  
Old 30th August 2012, 12:26 PM
sidd2
Guest
 
Posts: n/a
linuxfirefox
Re: Cleaning up unused RPMs

Thank you guys
Reply With Quote
  #8  
Old 6th December 2012, 12:58 AM
fiabledotbiz Offline
Registered User
 
Join Date: Oct 2011
Posts: 17
linuxfirefox
Arrow Re: Cleaning up unused RPMs

Quote:
Originally Posted by secipolla View Post
If you have yum plugin remove-with-leaves it will remove those would-be-orphaned packages automatically.
The exact name is "yum-plugin-remove-with-leaves".
Reply With Quote
  #9  
Old 6th December 2012, 11:09 AM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Cleaning up unused RPMs

rpmreaper seems to be very good to visualize and manage installed packages and dependencies (I only used it once).
Reply With Quote
  #10  
Old 8th December 2012, 02:21 AM
fiabledotbiz Offline
Registered User
 
Join Date: Oct 2011
Posts: 17
linuxfirefox
Re: Cleaning up unused RPMs

Does rpmreaper consider all the packages it lists are useless?
Reply With Quote
  #11  
Old 8th December 2012, 10:19 AM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Cleaning up unused RPMs

Quote:
Originally Posted by fiabledotbiz View Post
Does rpmreaper consider all the packages it lists are useless?
If I understand your question, no. It lists everything so we can have an idea of why some package is installed etc.

As I said I used it once or twice in preparation for the upgrade from F17 to F18. It has this ncurses interface so it's moreless like a Debian's aptitude but looked easier to use.
Reply With Quote
Reply

Tags
cleaning, rpms, unused

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
power off unused pci devices? docdrow Hardware & Laptops 0 3rd September 2010 01:03 AM
New to Fedora (And RPMs) - How do i stop language support rpms being installed? seaghan Using Fedora 4 15th October 2009 05:22 AM
Checking for Unused Dependencies uncholowapo Using Fedora 1 10th November 2008 04:28 AM
clean up unused dependencies jspaceman Using Fedora 1 14th June 2008 10:29 AM
Remove unused locales? ansorg Using Fedora 2 19th May 2006 09:49 AM


Current GMT-time: 05:31 (Friday, 18-04-2014)

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