Bug 693242

Summary: yum clean all doesn't clean disabled repos
Product: [Fedora] Fedora Reporter: David Kovalsky <dkovalsk>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: 14CC: benl, ffesti, james.antill, maxamillion, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-04 15:37:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Kovalsky 2011-04-03 20:48:30 UTC
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/

Comment 1 seth vidal 2011-04-04 15:37:43 UTC
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.
;