Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 165348 - "yum clean all" saves 1.4GB of .... what?
"yum clean all" saves 1.4GB of .... what?
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
: 165349 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2005-08-08 09:12 EDT by james
Modified: 2014-01-21 17:52 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-08 10:14:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description james 2005-08-08 09:12:54 EDT
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):

How reproducible:

Steps to Reproduce:
1.yum clean all

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 10:11:53 EDT
*** Bug 165349 has been marked as a duplicate of this bug. ***
Comment 2 Seth Vidal 2005-08-08 10:14:56 EDT
yum clean all only cleans out the repositories you have enabled. Not all

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 11:30:39 EDT
> 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/*"?

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