Re: dnf and yum caches

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

 



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.

cd /var/cache
cd yum/x86_64/22

ls -l
total 92
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 adobe-linux-i386/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 adobe-linux-x86_64/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 fedora/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 google-chrome/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 google-earth/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 rpmfusion-free/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 rpmfusion-free-updates/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 rpmfusion-nonfree/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 rpmfusion-nonfree-updates/
-rw-r--r--. 1 root root 1788 Apr 12 14:04 timedhosts
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 updates/
drwxr-xr-x. 4 root root 4096 Apr 12 14:04 virtualbox/

Note that these are all dated today.

cd /var/cache

du -s dnf yum
154988    dnf
5860796  yum

dnf clean all
Cleaning repos: google-earth virtualbox fedora rpmfusion-free-updates
               : adobe-linux-x86_64 rpmfusion-nonfree-updates
rpmfusion-free
               : adobe-linux-i386 updates google-chrome rpmfusion-nonfree
Cleaning up Everything

du -s dnf yum
154988    dnf
5860796    yum

No change.

dnf clean expire-cache

du -s dnf yum
154988    dnf
5860796    yum

dnf check-update
google-earth                                     58 kB/s | 4.8 kB     00:00
Fedora 22 - x86_64 - VirtualBox                 855 kB/s |  61 kB     00:00
Fedora 22 - x86_64                              2.7 MB/s |  41 MB     00:15
RPM Fusion for Fedora 22 - Free - Updates       442 kB/s | 226 kB     00:00
Adobe Systems Incorporated                       11 kB/s | 1.8 kB     00:00
RPM Fusion for Fedora 22 - Nonfree - Updates    118 kB/s |  60 kB     00:00
RPM Fusion for Fedora 22 - Free                 653 kB/s | 551 kB     00:00
Adobe Systems Incorporated                       11 kB/s | 1.8 kB     00:00
Fedora 22 - x86_64 - Updates                    2.7 MB/s |  22 MB     00:08
google-chrome                                    46 kB/s | 3.6 kB     00:00
RPM Fusion for Fedora 22 - Nonfree              939 kB/s | 170 kB     00:00
Last metadata expiration check performed 0:00:00 ago on Tue Apr 12
14:23:42 2016.

du -s dnf yum
154988    dnf
5860796    yum

Still no change. How do I remove the data?

Any help is appreciated.

Just in case this has anything to do with it this system has been
upgraded from 19 -> 20 -> 21 -> 22 using fedup.

Paolo
--
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


--
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-            We look for things.  Things that make us go!            -
-                                -- The "Paclyds", Star Trek TNG     -
----------------------------------------------------------------------
--
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