Bug 693242 - yum clean all doesn't clean disabled repos
Summary: yum clean all doesn't clean disabled repos
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-03 20:48 UTC by David Kovalsky
Modified: 2014-03-31 23:46 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-04-04 15:37:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.
;


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