Description of problem:
Running 'yum clean cache' gives me a usage message as if I had a typo (like yum
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):
Steps to Reproduce:
1. yum clean cache
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
It cleans the cache ;P
looks like the man page hasn't been updated.
run: yum clean dbcache metadata headers
I see. But what about 'yum clean all' not clean the cache either?
I can't recreate yum clean all not purging the cache on yum 3.0.3.
My mistake. I wrongly assumed yum clean all would clean everything including the
stuff of disabled repos.