Linux

Where Does Void Linux Store Packages and Repo Config?

Void keeps downloaded XBPS packages in /var/cache/xbps and package manager settings in /etc/xbps.d, with repo mirrors defined in /usr/share/xbps.d.

Last updated

Void does not use apt, dnf, or pacman, so the usual cache locations do not apply. Its package manager is XBPS and the cache sits at /var/cache/xbps. The folder is modest by default, but worth knowing when auditing disk usage.

Configuration follows a two layer scheme. Shipped defaults live in /usr/share/xbps.d and your overrides go in /etc/xbps.d. Mirror changes belong in the second folder. Editing the shipped files directly works until the next update replaces them.

Where Void Linux stores this, by platform

Linux
/var/cache/xbps

Cached .xbps packages. Trim with sudo xbps-remove -O. Check size with du -sh when hunting disk usage on small installs.

Linux
/etc/xbps.d

Your local XBPS settings and mirror overrides. Create files here rather than editing /usr/share/xbps.d so updates keep your choices. Repository lines point at your chosen mirror.

Frequently asked questions

How do I clean the XBPS cache on Void?

Run sudo xbps-remove -O to delete cached packages that are no longer installed, or check du -sh /var/cache/xbps first. Unlike apt and pacman caches, the XBPS cache only holds what you fetched, so it stays smaller than on most distros.

How do I change the mirror on Void Linux?

Copy /usr/share/xbps.d/*repository* to /etc/xbps.d/ and edit the copy with your preferred mirror. Files in /etc/xbps.d override the shipped defaults, so updates never overwrite your choice. Then run sudo xbps-install -S to resync.

Notice an outdated path? Let us know.