Re: dnf and yum caches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: "Rick Stevens" <ricks@xxxxxxxxxxxxxx>
> On 04/12/2016 02:30 PM, Paolo Galtieri wrote:
> > This is a problem that has existed for a long time, and is starting to
> > get really annoying.  I'm running F22 and when I do an update the
> > directories /var/cache/dnf and /var/cache/yum fill up and there doesn't
> > seem to be any way to clean them out.
> 
> "dnf (or yum) clean all" only clean for the CURRENT fedora. Your "du -s"
> commands are from /var/cache, and since you didn't specify walking
> down the tree (e.g. "du -hs *"), we don't know which directories under
> dnf and yum are sucking up the space.
> 
> Since further down in your post you say the machine has gone from F19
> through F22, you probably have a lot of cruft left over from those
> previous Fedoras. I'd recommend you do:
> 
> 	dnf clean all --releasever=19 --enablerepo=\*
> 	dnf clean all --releasever=20 --enablerepo=\*
> 	dnf clean all --releasever=21 --enablerepo=\*
> 
> and see if that helps.

FYI DNF-1.1.8 changes clean behavior [1] which is releasever and repo agnostic.
I.e. "dnf clean all" should remove all your cache within /var/cache/dnf dir.
DNF-1.1.8 should be available form F22+ in updates-testing. You can try it.

Doing "rm -fr /var/cache/dnf" should not harm DNF but "dnf clean all" is
proffered. 


Honza

[1] https://github.com/rpm-software-management/dnf/commit/b0f8ce2ae057e58e24e0f011033f500f1ff00db1
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux