Bug 165348

Summary: "yum clean all" saves 1.4GB of .... what?
Product: [Fedora] Fedora Reporter: james
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-08 14:14:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description james 2005-08-08 13:12:54 UTC
From Bugzilla Helper:
User-Agent: Opera/8.0 (X11; Linux i686; U; en)

Description of problem:
$ sudo yum clean all
Cleaning up Everything
0 headers removed
0 packages removed
0 metadata files removed
0 cache files removed
0 cache files removed

$ du -sch /var/cache/yum/*
14M     /var/cache/yum/base
4.9M    /var/cache/yum/dag
296M    /var/cache/yum/development
116K    /var/cache/yum/extras
402M    /var/cache/yum/extras-stable
171M    /var/cache/yum/extras-testing
32K     /var/cache/yum/flash
427M    /var/cache/yum/pre-extras
100K    /var/cache/yum/updates-released
35M     /var/cache/yum/updates-testing
1.4G    total

This looks to me like 1.4GB (!) of wasted space an my "getting full" hard drive.  Everything I want to install with 
yum has already been installed.  Why is yum saving 1.4GB of headers and packages after "yum clean all".  This 
looks like a bug to me.





Version-Release number of selected component (if applicable):
yum-2.3.2-7

How reproducible:
Always

Steps to Reproduce:
1.yum clean all
2.
3.
  

Actual Results:  $du -sch /var/cache/yum/*
...
1.4G    total

Expected Results:  remove all headers, packages, metadata, and cached files from /var/cache/yum.

Additional info:

Say whether or not there is any substantive, valid reason not to simply do "rm -R /var/cache/yum/*".

Comment 1 Seth Vidal 2005-08-08 14:11:53 UTC
*** Bug 165349 has been marked as a duplicate of this bug. ***

Comment 2 Seth Vidal 2005-08-08 14:14:56 UTC
yum clean all only cleans out the repositories you have enabled. Not all
repositories.

If you don't have the repos for each of the subdirs off of /var/cache/yum
enabled then that's why it won't clean them.



Comment 3 james 2005-08-08 15:30:39 UTC
> yum clean all only cleans out the repositories you have enabled.

Looks like a bug to me.

This is certainly a bug in the manpage, which says nothing about having to
enable the repository.

The word "all" suggests "all", and does not suggest "some".

Please, is there any reason not to do "rm -R /var/cache/yum/*"?