Bug 811969 - yum does not clean whole cache, it cleans only actual release data keeping old data intact
Summary: yum does not clean whole cache, it cleans only actual release data keeping ol...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-12 12:32 UTC by Michal Hlavinka
Modified: 2014-01-21 23:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-21 19:20:28 UTC
Type: Bug


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.