How Do I Clear Var Cache in Linux?
Contents

I recommend you read through the documentation more closely and decide whether this is a good time to clear the package cache. Yes, don’t delete /var/cache/apt/archives dir, but you can delete files: /var/cache/apt/pkgcache. bin and /var/cache/apt/srcpkgcache. bin, but them will be recreated by “apt-get update”.

Can we delete var cache in Linux?

Unlike /var/spool , the cached files can be deleted without data loss. … Files located under /var/cache may be expired in an application specific manner, by the system administrator, or both. The application must always be able to recover from manual deletion of these files (generally because of a disk space shortage).

How do I free up space on my var?

Clear all files unless the crashes are recent and investigation is required. /var/nsinstall – Firmware is placed in this directory when upgrading. Clear all files, except the firmware that is currently being used. For more help on deleting files see FreeBSD Man Pages. Delete the files which are not required.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest