According to the man page, yum clean all should do all cleanup, including ... yum clean packages Eliminate any cached packages from the system. Note that packages are not automatically deleted after they are down‐ loaded. ... But yum clean all doesn't cleanup packages of not enabled repos. This is misleading. I believe that `yum clean all' should really clean everything possible. Including preupgrade repos, temporary repos, etc. kovinek:~ (0) # du -sh /var/cache/yum/ 587M /var/cache/yum/ kovinek:~ (0) # yum clean all Loaded plugins: auto-update-debuginfo, changelog, refresh-packagekit Cleaning repos: Java_esmska adobe-linux-i386 fedora fedora-debuginfo macromedia rpmfusion-free rpmfusion-free-updates : rpmfusion-nonfree rpmfusion-nonfree-updates updates updates-debuginfo Cleaning up Everything kovinek:~ (0) # du -sh /var/cache/yum/ 432M /var/cache/yum/ kovinek:~ (0) # yum --enablerepo=\* clean all Loaded plugins: auto-update-debuginfo, changelog, refresh-packagekit Found 114 installed debuginfo package(s) Cleaning repos: Java_esmska adobe-linux-i386 dom0-kernel dom0-kernel-source fedora fedora-debuginfo fedora-source : macromedia rpmfusion-free rpmfusion-free-debuginfo rpmfusion-free-rawhide : rpmfusion-free-rawhide-debuginfo rpmfusion-free-rawhide-source rpmfusion-free-source : rpmfusion-free-updates rpmfusion-free-updates-debuginfo rpmfusion-free-updates-source : rpmfusion-free-updates-testing rpmfusion-free-updates-testing-debuginfo : rpmfusion-free-updates-testing-source rpmfusion-nonfree rpmfusion-nonfree-debuginfo : rpmfusion-nonfree-rawhide rpmfusion-nonfree-rawhide-debuginfo rpmfusion-nonfree-rawhide-source : rpmfusion-nonfree-source rpmfusion-nonfree-updates rpmfusion-nonfree-updates-debuginfo : rpmfusion-nonfree-updates-source rpmfusion-nonfree-updates-testing : rpmfusion-nonfree-updates-testing-debuginfo rpmfusion-nonfree-updates-testing-source updates : updates-debuginfo updates-source updates-testing updates-testing-debuginfo updates-testing-source Cleaning up Everything kovinek:~ (0) # du -sh /var/cache/yum/ 104M /var/cache/yum/
We've covered this a few hundred times over the years. ALL == ALL metadata from enabled repos. changing it at this point would dangerously confuse our users. ;