Skip to content

Instantly share code, notes, and snippets.

@gotakk
Created January 28, 2018 11:28
Show Gist options
  • Save gotakk/31ed031e01ca07d6726bee7ff2511804 to your computer and use it in GitHub Desktop.
Save gotakk/31ed031e01ca07d6726bee7ff2511804 to your computer and use it in GitHub Desktop.

https://www.autonomail.com/blog/freeing-disk-space-with-the-packagekit-cache/

Safely removing the package kit cache

PackageKit does not offer a built in way to clean the updates. So we have to resort to a dumb fix. First delete the whole cache directory:

$ rm -r /var/cache/PackageKit

Then for cleanliness, let PackageKit re-download the metadata cache. This just downloads the metadata cache; not the auto updates:

$ sudo pkcon refresh force -c -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment