Bug 811969

Summary: yum does not clean whole cache, it cleans only actual release data keeping old data intact
Product: [Fedora] Fedora Reporter: Michal Hlavinka <mhlavink>
Component: yumAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: ffesti, james.antill, maxamillion, pmatilai, tla, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-21 19:20:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michal Hlavinka 2012-04-12 12:32:24 UTC
Description of problem:
I don't reinstall my machine, I update it using yum. I've found out, there is not enough space left on / partition and where looking around, I've found /var/cache/yum to be eating 1.7 GB data. I have following directories in /var/cache/yum/x86_64:
14/ 332 MB 
15/ 585 MB
16/ 249 MB
17/ 480 MB

I tried to clean cache using "yum clean all", but it removed data only from 17/ directory, other directories still contain all data.
I think yum should clear it's cache after some time and yum clean all should remove data for old releases.


Version-Release number of selected component (if applicable):
yum-3.4.3-23.fc17.noarch

Comment 1 Tim Lauridsen 2012-04-13 08:47:38 UTC
yum clean all only works on enabled repositories

if your update to a new release using yum your enabled will switch to the new release repositories and the old cache data i left in limbo.

updating by yum is not supported, so there is some things you must cleanup yourself.

a trick could be to run

yum clean all --enablerepo=\* 

before updating the 'fedora-release' rpm to the new release

Comment 2 Michal Hlavinka 2012-04-13 09:00:28 UTC
Well, it's the "fedora", "updates" and "updates-testing" repo before the update and it's still the same repo after the update, only destination url gets changed. Isn't it possible to:
a) clean the same repository
or
b) clean data that does not belong to any repository

?

Comment 3 Fedora Admin XMLRPC Client 2012-04-27 15:24:25 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 James Antill 2013-05-21 19:20:28 UTC
 This is intentional. We've added text to show what is being cleaned, and I've done a command to show better what is in the cache dir (although that's not upstream yet).