On Void Linux, XBPS keeps downloaded packages in a cache directory. You can clean it safely like this:
Remove all cached packages#
Run as root:
sudo xbps-remove -OThis is the recommended way—it deletes old cached packages in:
/var/cache/xbps/Remove only obsolete packages (not installed anymore)#
sudo xbps-remove -oClean manually (optional)#
If you want to delete everything in the cache:
sudo rm -rf /var/cache/xbps/*This is safe, but xbps-remove -O is cleaner because it understands the package database.
Check cache size before cleaning#
This is safe, but xbps-remove -O is cleaner because it understands the package database.
Check cache size before cleaning#
This is safe, but xbps-remove -O is cleaner because it understands the package database.
Check cache size before cleaning#
du -sh /var/cache/xbps