Fedora Linux Support Community & Resources Center
  #1  
Old 12th March 2010, 04:16 PM
atwinix Offline
Registered User
 
Join Date: Aug 2008
Posts: 36
linuxfedorafirefox
Cleaning old packages from Yum Cache

Hello All,

I have enabled the option to keep the yum cache when updating Fedora 12 and I was wondering if there was a way in which I could remove old versions of the same package from the cache?

I have Fedora installed on more than one machine and I make them share a common update location for their updates to avoid downloading the same packages twice (bandwidth quota expensive in Australia).

Any ideas on how I could accomplish that? yum clean doesn't seem to have any options to only remove old packages!!!

Example:
The yum update cache has:

wireshark-gnome-1.2.5-3.fc12.x86_64.rpm
wireshark-gnome-1.2.6-1.fc12.x86_64.rpm

I wish to only keep the most recent version that is wireshark-gnome-1.2.6-1.fc12.x86_64.rpm, but for all the packages.


With thanks,

atwinix
Reply With Quote
  #2  
Old 12th March 2010, 09:34 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Re: Cleaning old packages from Yum Cache

Hello atwinix,

There is a python script named Tidy RPM Cache. I used it once just now, and it does what you said you need. But I have never used it before, so I can't say anything about it other than it exists.
Reply With Quote
  #3  
Old 12th March 2010, 11:39 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: Cleaning old packages from Yum Cache

# yum clean packages
Eliminate any cached packages from the system. Note that pack-
ages are not automatically deleted after they are downloaded.

# yum clean all
Reply With Quote
  #4  
Old 12th March 2010, 11:47 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Re: Cleaning old packages from Yum Cache

Quote:
Originally Posted by scott32746

# yum clean packages
Eliminate any cached packages from the system. Note that pack-
ages are not automatically deleted after they are downloaded.

# yum clean all
Hello scott32746,

Those commands delete the entire cache. I think atwinix wants to maintain a local cache of the currently installed packages and delete only the no-longer-installed packages.

Last edited by stoat; 12th March 2010 at 11:59 PM.
Reply With Quote
  #5  
Old 13th March 2010, 01:53 PM
atwinix Offline
Registered User
 
Join Date: Aug 2008
Posts: 36
linuxfedorafirefox
Re: Cleaning old packages from Yum Cache

Hello stoat,

I tried the tool you recommended - Tidy RPM Cache - and it does exactly what I wanted it to do. Thanks loads. That is a real nice addition to my maintenance scripts. Great help. Just freed over 500MB of old updates...

Thank you all for your time and help.

Greatly appreciated.
Reply With Quote
Reply

Tags
yum

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
cleaning up /var/tmp mouse_runner Using Fedora 12 19th December 2009 07:35 PM
no cache in /var/cache/yum for fedora 5 fire-fly Installation, Upgrades and Live Media 4 26th April 2006 07:32 PM
how to ask keep downloaded files in /var/cache/yum/packages? ramaswamyps Installation, Upgrades and Live Media 4 24th April 2006 12:59 PM
Cleaning up your box navilon Using Fedora 2 22nd November 2004 10:43 PM


Current GMT-time: 06:15 (Monday, 28-07-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