Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.33 KB

File metadata and controls

34 lines (28 loc) · 1.33 KB

Pacman

Command Meaning
pacman -S Install package
pacman -Syy Sync package database
pacman -Syu Upgrade whole system
pacman -Ss search package
pacman -R remove package
pacman -Rs remove package with dependencies
pacman -Runsc remove package and all that belongs to it
pacman -Q all installed packages
pacman -Qe all explicitly installed packages
pacman -Qq all installed packages without versions
pacman -Qn packges from main repositories
pacman -Qm all AUR packages
pacman -Qdtq list unneeded dependencies
pacman -Qs search for local packages
pacman -Sc remove old packages from the cache
yay -Yc remove unneded packages (alternatively, use sudo pacman -Rns $(pacman -Qtdq))
yay -Syu --devel upgrade all AUR packages

Uncomment the line Color in /etc/pacman.conf to add colors to the pacman output.

When getting error: failed to commit transaction (invalid or corrupted package (PGP signature)), try the following:

  • Make sure the system time is correct using tpd -qg followed by hwclock -w
  • Reset the packges cache using pacman -Sc
  • Reset all pacman keys
    • Remove the /etc/pacman.d/gnupg directory
    • Rerun pacman-key --init followed by pacman-key --populate to re-add the default keys