=== Pacman cheatsheet === source: [[ https://devhints.io/pacman ]] == Common commands == pacman -Syu # Install (and update package list) pacman -S # Install only pacman -Rsc # Uninstall pacman -Ss # Search pacman -Syu # Upgrade everything Install from file: pacman -U Force overwrite files: pacman -S --overwrite pacman -S --overwrite \* == Query == pacman -Qe # List explictly-installed packages pacman -Ql # What files does this package have? pacman -Qii # List information on package pacman -Qo # Who owns this file? pacman -Qs # Search installed packages for keywords == Orphans == pacman -Qdt # List unneeded packages pacman -Rns $(pacman -Qdtq) # Uninstall unneeded packages Avoid orphans by using ''pacman -Rsc'' to remove packages, which will remove unneeded dependencies. == Other == pactree # What does pkg depend on? pactree -r # What depends on pkg? === Key problems === Things to try: pacman-key --refresh-keys pacman-key --list-keys edit /etc/pacman.d/gnupg/gpg.conf Re-initialize keyring: rm -r /etc/pacman.d/gnupg pacman-key --init pacman-key --populate archlinux pacman -S archlinux-keyring === Pacseek === Pacseek is a terminal UI for searching / installing / upgrading packages, supporting multiple pacman / AUR helpers. === Paru === paru is a rust-based pacman / AUR wrapper. [[ https://github.com/Morganamilo/paru ]] paru # Interactively search and install . paru # Alias for paru -Syu. paru -S # Install a specific package. paru -Sua # Upgrade AUR packages. paru -Qua # Print available AUR updates. paru -G # Download the PKGBUILD and related files of . paru -Gp # Print the PKGBUILD of . paru -Gc # Print the AUR comments of . paru --gendb # Generate the devel database for tracking *-git packages. This is only needed when you initially start using paru. paru -Bi . # Build and install a PKGBUILD in the current directory.