Void Linux utilizes the X Binary Package System (XBPS) for package management. XBPS is designed to be simple, efficient, and reliable. Here's a quick guide to get you started:
To install a package, use the following command:
sudo xbps-install -S <package-name>
sudo xbps-install -S bat
Replace <package-name>
with the name of the package you want to install.
sudo xbps-install -S --repository <package-path> <package-full-name>
sudo xbps-install -S --repository host/binpkgs hyprland-0.35.0_1
Replace <package-path>
with the directory of package and Replace <package-full-name>
with the name of the package you want to install
Before installing or updating packages, it's advisable to refresh the package database:
sudo xbps-install -Su
This command synchronizes the local package database with the remote repositories, ensuring you have the latest package information.
To upgrade all installed packages to their latest versions, use:
sudo xbps-install -u
This command updates all installed packages to their latest available versions.
To search for a package, you can use:
xbps-query -Rs <search-term>
Replace <search-term>
with the name or keyword related to the package you're looking for.
To remove a package, use:
sudo xbps-remove -R <package-name>
Replace <package-name>
with the name of the package you want to remove.
To clean the package cache and free up disk space, use:
sudo xbps-remove -O
This command removes old package files from the cache.
To set alternative for an app use :
sudo xbps-alternatives -C <config>
XBPS provides a straightforward and efficient package management system for Void Linux. These basic commands should help you get started with installing, updating, and managing packages on your Void Linux system.