Void Linux
Reference guide for Void Linux covering package management, runit service management, and networking.
Void Linux Handbook
Package Management
Void Linux uses xbps as its package manager.
Install a package (sync repos + install)xbps-install -S <package>
Update all packagesxbps-install -Su
Search for a packagexbps-query -Rs <keyword>
List installed packagesxbps-query -l
Show package infoxbps-query -S <package>
Remove a packagexbps-remove <package>
Remove a package and its orphaned dependenciesxbps-remove -R <package>
Reconfigure all packagesxbps-reconfigure -fa
Runit Services
Void Linux uses runit for service management. Services are enabled by symlinking them into /var/service/:
Enable core servicesln -s /etc/sv/dbus /var/service/
ln -s /etc/sv/iwd /var/service/
Check service statussv status dbus
sv status iwd
DHCP for Wireless Interface
Copy the default dhcpcd service template for your wireless interface:
Create a dhcpcd service for wlp2s0cp -r /etc/sv/dhcpcd-eth0 /etc/sv/dhcpcd-wlp2s0
Edit the run script to reference the correct interface:
/etc/sv/dhcpcd-wlp2s0/run#!/bin/sh
exec dhcpcd -B wlp2s0
Enable and start the serviceln -s /etc/sv/dhcpcd-wlp2s0 /var/service/
sv up dhcpcd-wlp2s0
Essential Packages
Install useful packagesxbps-install -S vim htop lm_sensors zellij fastfetch alsa-utils
Timezone
Set timezone to Asia/Tokyoln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
DNS
If DNS is not working after connecting to WiFi, set a resolver manually:
/etc/resolv.confnameserver 1.1.1.1