Red Hat Bugzilla – Bug 185093
Yum clean packages does not do its job
Last modified: 2014-01-21 17:53:52 EST
Description of problem:
When running yum clean packages, it does not remove the packages downloaded
during an update
Version-Release number of selected component (if applicable): yum-2.6.0-1
How reproducible: Everytime
Steps to Reproduce:
1. Update system w/ yum
2. After update, run yum clean packages
3. Watch it report that nothing has been removed, then check the cache location
to verify this fact.
Actual results: It leaves the rpm's that were used to update the system.
Expected results: It removed the rpm's that were used to update the system.
is the repository that you were hoping to have cleaned out not enabled by default?
ie: did you run:
yum --enablerepo=somerepo update
yum clean packages
if so then you need to know that 'clean packages' only cleans packages from
enabled repos. Just like update only applies updates from enabled repos.
Nope, just cleaning the enabled repo. Here's an example of the output after
install wesnoth & it's dependencies with 'yum install wesnoth':
Dependency Installed: SDL_image.i386 0:1.2.4-5.fc5 SDL_net.i386 0:1.2.5-8.fc5
[bpepple@shuttle ~]$ sudo yum clean packages
Loading "installonlyn" plugin
Cleaning up Packages
0 packages removed
- please include your yum.conf and yum.repos.d/*.repo files
- please include a listing of the related directories in /var/cache/yum
Created attachment 125948 [details]
Here's a tarball of the requested files you wanted to look at. I did a 'du -a'
of the /var/cache/yum, but unfortunately I had already removed the rpm's that
were here before filing the bug.
just for grins run this for me:
yum install anypkg_available
let it install
do not run anything but go into /var/cache/yum and find the package.
I bet you won't be able to b/c of a modification to yum 2.6.0 which, if
will result in pkgs being removed after each run of yum.
Yup, you're right. I did a quick look and couldn't find anything. The prior
rpm's must have been left over from installation with an older version of yum.
This can probably be closed then, since it's not really a bug, though it should
probably be mentioned in the FC5 release notes or something.
it's already been added to them
*** Bug 186156 has been marked as a duplicate of this bug. ***