Linux

Pacman

Pacman is the default package manager for Arch linux. Basic commands:

Update system

pacman -Syyu
  • S -> sync (install or update packages)
  • y -> refresh package database from the remote repos
  • yy -> force a full refresh of the package database, even if it’s already up-to-date
  • u -> upgrade all installed packages that have new versions

Search

for new (uninstalled) package:

pacman -Ss keyword 

for installed package:

pacman -Qs keyword

Install

sudo pacman -S package_name

Remove

sudo pacman -Rns package_name
  • R -> remove
  • s -> include unused dependencies
  • r -> include config files

Package info

about files installed by a package:

pacman -Ql package_name

about which package owns a file:

pacman -Qo /path/to/file