Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've briefly read through man pkcon, and PackageKit does not seem to provide a command to clear the cache. I think, you already got the best command to clear the cache. If you don't use Gnome Software/PackageKit, just disable (mask) the service.

I've briefly read through man pkcon, and PackageKit does not seem to provide a command to clear the cache. I think, you already got the best command to clear the cache. If you don't use Gnome Software/PackageKit, just disable (mask) the service.

EDIT: Another method is to tell PackageKit not to cache (store) packages - there is a setting in /etc/PackageKit/PackageKit.conf: uncomment #KeepCache=false (to make it look like: KeepCache=false)

And if you use dnf to update, you tell PackageKit not to download any updates automatically:

gsettings set org.gnome.software download-updates false