Skip to main content

List Installed Packages on Void Linux - Complete Guide

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 -l

This 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_2

2. List only explicitly installed packages (not dependencies)
#

xbps-query -m

This 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 -v

4. Check if a specific program is installed
#

xbps-query -s firefox

Or exact match:

xbps-query -l | grep firefox

5. List installed packages and save to a file
#

Useful for backups or migration:

xbps-query -m > installed-packages.txt

Restore later with:

sudo xbps-install -S -y $(cat installed-packages.txt)

6. List files installed by a specific package
#

xbps-query -f firefox

7. List orphaned packages (unused dependencies)
#

xbps-remove -o

Quick recommendation
#

If you just want “everything I installed”, use:

xbps-query -m

If you want everything on the system, use:

xbps-query -l
Youcef
Author
Youcef
My name is youcef and i’m linux user who fool in love with linux , like free and open software .