<html><head></head><body>Dang! You are quite correct.<br>
<br>
systemctl disable packagekit; systemctl stop packagekit; rm -rf /var/cache/PackageKit<br>
<br>
Or in /etc/PackageKit/PackageKit.conf uncomment #KeepCache=false and restart it.<br><br><div class="gmail_quote">On October 3, 2017 9:43:43 PM EDT, "Ted W." <ted-lists@xy0.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">dnf clean all was one of the first things I tried. It didn't clean <br />anything from PackageKit :(<br /><br />On 10/03/2017 09:23 PM, Jim Kinney wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> dnf clean all<br /> <br /> Much faster :-)<br /> <br /> PackageKit is the tool that automatically downloads rpms for upgrade and <br /> notifies you that updates are available in the gnome ui.<br /> <br /> Best way to not have it happen (especially with manual cli upgrades) is <br /> to disable PakageKit from startup in systemd.<br /> <br /> On October 3, 2017 9:04:34 PM EDT, "Ted W." <ted-lists@xy0.org> wrote:<br /> <br /> Today my laptop warned me that disk space on / was running low. After<br /> investigation I found out the source was /var/cache/PackageKit. It was<br /> taking up over **24GB** of space of my 50GB root partition. 50GB!!!<br /> <br /> My first question was, what the heck is PackageKit and why is it eating<br /> half of my root partition (10% of my ENTIRE DISK)!? Thinking it was<br /> something to do with the standard package caching, I looked to `dnf` and<br /> `pkcon` for help. Found a solution to purge some cached files. This<br /> helped but didn't really make a noticeable dent. Looks like most of the<br /> files were in /var/cache/PackageKit/25.... 25... I'm on Fedora 26! Why<br /> the heck is 10% of my disk being used by packages cached from a version<br /> of Fedora I'm not even running!<br /> <br /> Turns out Gnome3 is trying to be "helpful" and in their all knowing<br /> ways, the developers have thought it would be "correct" if they enabled<br /> download caching for ALL packages you update BY DEFAULT. Even if you've<br /> _never_used_the_graphical_package_manager!<br /> <br /> W T F<br /> <br /> Thankfully, there was an easy fix to all of this:<br /> <br /> Remove the files:<br /> `# find /var/cache/PackageKit -type f -name \*.rpm -exec rm {} +`<br /> <br /> Turn off auto downloading:<br /> `# gsettings <a href="http://setorg.gnome.software">setorg.gnome.software</a> <<a href="http://org.gnome.software">http://org.gnome.software</a>> download-updates false`<br /> <br /> I've gotten mostly used to Gnome3 since it was made the default in<br /> Fedora many years ago but sometimes I still find things like this that<br /> really grind my gears. Defaults that try to be "helpful" and have<br /> absolutely no sanity checking to ensure they're not doing something<br /> completely and utterly brain dead!<br /> <br /> Original bug report:<a href="https://bugs.freedesktop.org/show_bug.cgi?id=80053">https://bugs.freedesktop.org/show_bug.cgi?id=80053</a><br /> StackExchange post:<a href="https://unix.stackexchange.com/questions/265755/fedora-23-can-i-safely-delete-files-in-var-cache-packagekit-metadata-updates">https://unix.stackexchange.com/questions/265755/fedora-23-can-i-safely-delete-files-in-var-cache-packagekit-metadata-updates</a><br /> <br /> </rant><br /> <br /> - Ted<br /> <br /> <br /> -- <br /> Sent from my Android device with K-9 Mail. All tyopes are thumb related <br /> and reflect authenticity.<br /></blockquote><hr /><br />Ale mailing list<br />Ale@ale.org<br /><a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br />See JOBS, ANNOUNCE and SCHOOLS lists at<br /><a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.</body></html>