My system compalined of a low disk space on filesystem root. Root consists of 50GB, df -h showed an usage of 100%.
I did some cleaning, : dnf clean all, removed an kernel (there were three), removed a lot op files in /tmp and I ran Beachbit.
I have gained some room:
$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 2.0G 0 2.0G 0% /dev tmpfs 2.0G 284K 2.0G 1% /dev/shm tmpfs 2.0G 9.6M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/mapper/vg_cello-lv_root 50G 35G 13G 74% / tmpfs 2.0G 96K 2.0G 1% /tmp /dev/sda5 477M 147M 302M 33% /boot /dev/mapper/vg_cello-lv_home 387G 165G 203G 45% /home tmpfs 396M 24K 396M 1% /run/user/42 tmpfs 396M 28K 396M 1% /run/user/500
Still there is a lot inside root. It seems that /var/cache consumes a lot of room: PackageKit and yum.
$ su -c "du --max-depth=1 -m -x /var/cache" Password: 1 /var/cache/ccache 1 /var/cache/ldconfig 1 /var/cache/jwhois 17472 /var/cache/PackageKit 37 /var/cache/cups 1 /var/cache/hald 153 /var/cache/dnf 1 /var/cache/icecream 1 /var/cache/realmd 1 /var/cache/abrt-di 1 /var/cache/php-pear 1 /var/cache/libvirt 7 /var/cache/man 5597 /var/cache/yum 1 /var/cache/mock 1 /var/cache/app-info 1 /var/cache/httpd 6 /var/cache/fontconfig 1 /var/cache/foomatic 1 /var/cache/davfs2 1 /var/cache/gdm 1 /var/cache/ibus 1 /var/cache/krb5rcache 23271 /var/cache
Now I am not sure what to do. I want to delete unnecessary files. But here my knowledge of the filesystem ends. Probably a stupid question, but I am going to ask anyway; can I delete /var/cache/PackageKit, or will that ruin my system?
On 11/12/2016 03:51 PM, Peter Lesterhuis wrote:
Now I am not sure what to do. I want to delete unnecessary files. But here my knowledge of the filesystem ends. Probably a stupid question, but I am going to ask anyway; can I delete /var/cache/PackageKit, or will that ruin my system?
You're probably using "dnf" to update packages rather than rebooting and letting PackageKit do the work. When you do that, PackageKit will download the updates and never remove them. Updates are only removed when they're applied. If you're using "dnf" you should disable the packagekit service:
systemctl disable packagekit
Having disabled that service, I believe it's safe to delete /var/cache/PackageKit/<release-ver>
Off-topic, but there is a very handy utility named ncdu. It's ncurses variant of du.
Sent from my iPhone
On 13 Nov 2016, at 02:51, Peter Lesterhuis peterlesterhuis@telfort.nl wrote:
My system compalined of a low disk space on filesystem root. Root consists of 50GB, df -h showed an usage of 100%.
I did some cleaning, : dnf clean all, removed an kernel (there were three), removed a lot op files in /tmp and I ran Beachbit.
I have gained some room:
$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 2.0G 0 2.0G 0% /dev tmpfs 2.0G 284K 2.0G 1% /dev/shm tmpfs 2.0G 9.6M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/mapper/vg_cello-lv_root 50G 35G 13G 74% / tmpfs 2.0G 96K 2.0G 1% /tmp /dev/sda5 477M 147M 302M 33% /boot /dev/mapper/vg_cello-lv_home 387G 165G 203G 45% /home tmpfs 396M 24K 396M 1% /run/user/42 tmpfs 396M 28K 396M 1% /run/user/500
Still there is a lot inside root. It seems that /var/cache consumes a lot of room: PackageKit and yum.
$ su -c "du --max-depth=1 -m -x /var/cache" Password: 1 /var/cache/ccache 1 /var/cache/ldconfig 1 /var/cache/jwhois 17472 /var/cache/PackageKit 37 /var/cache/cups 1 /var/cache/hald 153 /var/cache/dnf 1 /var/cache/icecream 1 /var/cache/realmd 1 /var/cache/abrt-di 1 /var/cache/php-pear 1 /var/cache/libvirt 7 /var/cache/man 5597 /var/cache/yum 1 /var/cache/mock 1 /var/cache/app-info 1 /var/cache/httpd 6 /var/cache/fontconfig 1 /var/cache/foomatic 1 /var/cache/davfs2 1 /var/cache/gdm 1 /var/cache/ibus 1 /var/cache/krb5rcache 23271 /var/cache
Now I am not sure what to do. I want to delete unnecessary files. But here my knowledge of the filesystem ends. Probably a stupid question, but I am going to ask anyway; can I delete /var/cache/PackageKit, or will that ruin my system?
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On 11/12/2016 03:51 PM, Peter Lesterhuis wrote:
17472 /var/cache/PackageKit 5597 /var/cache/yum
That's not a lot of space used. I think you should look elsewhere to recover space.
Now I am not sure what to do. I want to delete unnecessary files. But here my knowledge of the filesystem ends. Probably a stupid question, but I am going to ask anyway; can I delete /var/cache/PackageKit, or will that ruin my system?
That won't cause any problem other than PackageKit will need to download the metadata next time it runs.
Since you're most likely using dnf, you can delete the yum cache.
On 11/13/2016 03:02 AM, Samuel Sieb wrote:
On 11/12/2016 03:51 PM, Peter Lesterhuis wrote:
17472 /var/cache/PackageKit 5597 /var/cache/yum
That's not a lot of space used. I think you should look elsewhere to recover space.
It is, he had a "-m" option.
Could always move the bloated directories to the /home/[user]/JIC/ directory and restart. IF an issue arises then it is fairly simple to boot from live thumb-drive or some-such and move the directories back effectively restoring the system in a worse case scenario.
-- Fred
On 11/13/2016 02:00 AM, Roberto Ragusa wrote:
On 11/13/2016 03:02 AM, Samuel Sieb wrote:
On 11/12/2016 03:51 PM, Peter Lesterhuis wrote:
17472 /var/cache/PackageKit 5597 /var/cache/yum
That's not a lot of space used. I think you should look elsewhere to recover space.
It is, he had a "-m" option.
Sorry, I noticed that option but didn't look up what it did...
So yes, as I've found on a few of my computers, the PackageKit cache is taking up a LOT of space and should be cleared.