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?
Asked
Active
Viewed 3,888 times
1 Answers
-1
Refer post: https://www.computerhope.com/unix/apt-file.htm & https://wiki.debian.org/apt-file
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
Ajay
- 688
purgeaction was removed. For example it is present in Ubuntu Trusty 14 but not in Ubuntu Focal 20 – Jet Blue Aug 10 '20 at 03:55apt-fileshares the cache info withapt. This line in the docs makes me think so: "The apt-file command relies on the APT configuration. Notably, the default configuration makesaptfetch Contents files by default during a call toapt update." – Jet Blue Aug 10 '20 at 21:22