Celeb Glow
general | March 30, 2026

Clear apt-file cache

How do I clear the cache created by running apt-file update?
Also, is there a way to see how much space the cache is currently using?

1 Answer

Refer post: &

apt-file purge

Purge the user cache. An apt-file update will be needed before a search can be performed on the user cache. If the user cache doesn't exist, the system-wide cache can be used for user searches.

Purge

Clear "Contents-" files from the apt-file cache directory. If you receive any errors listing or searching, it's a good idea to perform a purge and then an update.

To delete the system wide cache use:

sudo apt-file purge

related directories:

 ~/.cache/apt-file
/var/cache/apt/apt-file
4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy