On Void Linux, installed programs are managed by XBPS. Here are the common and useful ways to list them, depending on what you want to see.
1. List all installed packages (most common)#
xbps-query -lThis shows all installed packages, including libraries and dependencies.
Example output:
ii firefox-121.0_1
ii vim-9.1.0042_1
ii glibc-2.38_22. List only explicitly installed packages (not dependencies)#
xbps-query -mThis is usually what people mean by “programs I installed myself”.
3. List installed packages with versions#
xbps-query -l | awk '{print $2}'Or more detailed:
xbps-query -l -v4. Check if a specific program is installed#
xbps-query -s firefoxOr exact match:
xbps-query -l | grep firefox5. List installed packages and save to a file#
Useful for backups or migration:
xbps-query -m > installed-packages.txtRestore later with:
sudo xbps-install -S -y $(cat installed-packages.txt)6. List files installed by a specific package#
xbps-query -f firefox7. List orphaned packages (unused dependencies)#
xbps-remove -oQuick recommendation#
If you just want “everything I installed”, use:
xbps-query -mIf you want everything on the system, use:
xbps-query -l