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 -oπ¦ Clean 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#
du -sh /var/cache/xbps