Arch Linux
Rolling release distribution focused on simplicity and user control.
Quick Start
# Update system
sudo pacman -Syu
# Install AUR helper
git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
# Essential packages
sudo pacman -S base-devel git neovim htop btop fastfetch
# Enable multilib (32-bit support)
# Uncomment [multilib] in /etc/pacman.conf
sudo pacman -Syu
Documentation Index
Getting Started
| Page | Description |
|---|---|
Complete Arch installation walkthrough |
|
Locale, users, hostname, fstab |
|
systemd-boot, GRUB, mkinitcpio |
Package Management
| Page | Description |
|---|---|
Package manager commands and tips |
|
Arch User Repository and yay/paru |
|
Reflector and mirror optimization |
|
Updates, cleanup, troubleshooting |
System Administration
| Page | Description |
|---|---|
Multiple kernels, DKMS, parameters |
|
NetworkManager, iwd, VPN |
|
TLP, battery, suspend/hibernate |
|
LUKS encryption, Btrfs, SSH hardening, secrets |
Post-Install Essentials
First Steps
# Create user (if not done during install)
useradd -m -G wheel username
passwd username
# Enable sudo
EDITOR=nvim visudo
# Uncomment: %wheel ALL=(ALL:ALL) ALL
# Update system
sudo pacman -Syu
# Install AUR helper
git clone https://aur.archlinux.org/yay.git
cd yay && makepkg -si
Quick Maintenance
# Full system update
sudo pacman -Syu
# Update AUR packages too
yay -Syu
# Clean package cache (keep last 2 versions)
sudo paccache -rk2
# Remove orphaned packages
sudo pacman -Rns $(pacman -Qtdq) 2>/dev/null || echo "No orphans"
# Check for .pacnew files
sudo find /etc -name "*.pacnew"
# Check failed services
systemctl --failed
# Check recent errors
journalctl -p 3 -xb
Common Tasks
Package Management
# Search packages
pacman -Ss keyword
yay -Ss keyword # Include AUR
# Install package
sudo pacman -S package
yay -S aur-package # From AUR
# Remove package and dependencies
sudo pacman -Rns package
# Find what owns a file
pacman -Qo /usr/bin/binary
# List explicitly installed
pacman -Qe
# List AUR packages
pacman -Qm