Skip to content

pacman Snippets

Terminal window
# Search a package
pacman -Ss <package>
# Install a package if it is not already installed
pacman -S --needed <package>
# Remove a package(s) and all dependencies and configuration files
pacman -Rns <package>
# Upgrade Packages, install packages which have an older version already installed
sudo pacman -Syu --noconfirm
## -Sy : update and install
## -u : upgrade
## --noconfirm : accept all prompts
# List installed packages
pacman -Q
# Clean up local caches
pacman -Sc
Terminal window
# Build from manually downloaded AUR repository
makepkg -si
# Interactively search and install <target>
paru <target>
# Alias for paru -Syu
paru
# Install target package
paru -S <target>
# Upgrade AUR packages
paru -Sua
# Print available AUR updates.
paru -Qua
# Download the PKGBUILD and related files of <target>.
paru -G <target>
# Print the PKGBUILD of <target>
paru -Gp <target>
# Print the AUR comments of <target>
paru -Gc <target>