Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 227672 - yum clean cache is broken
yum clean cache is broken
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2007-02-07 09:40 EST by Tobias Oed
Modified: 2014-01-21 17:57 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-25 15:14:32 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 Tobias Oed 2007-02-07 09:40:49 EST
Description of problem:
Running 'yum clean cache' gives me a usage message as if I had a typo (like yum
clean foo)

Also, 'yum clean all' doesn't clean the cache either. So there is no way
to clean the cache except with rm -rf /var/cache/yum/*

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

How reproducible:

Steps to Reproduce:
1. yum clean cache
Actual results:
tobsbox:~# yum clean cache
Loading "installonlyn" plugin
Error: invalid clean argument: 'cache'
usage: yum [options] < grouplist, localinstall, groupinfo, localupdate,
resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell,
install, whatprovides, groupinstall, update, groupupdate, info, search,
check-update, list, remove, clean, grouperase >

  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C                    run entirely from cache, don't update cache
  -c  [config file]     config file location
  -R  [minutes]         maximum command wait time
  -d  [debug level]     debugging output level
  -e  [error level]     error output level
  -y                    answer yes for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins

Expected results:
It cleans the cache ;P
Comment 1 Seth Vidal 2007-02-07 09:58:53 EST
looks like the man page hasn't been updated.

run: yum clean dbcache metadata headers

Comment 2 Tobias Oed 2007-02-07 10:12:47 EST
I see. But what about 'yum clean all' not clean the cache either?
Comment 3 Seth Vidal 2007-02-07 10:14:57 EST
I can't recreate yum clean all not purging the cache on yum 3.0.3.

Comment 4 Tobias Oed 2007-02-07 11:02:25 EST
My mistake. I wrongly assumed yum clean all would clean everything including the
stuff of disabled repos.

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