Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Arch Package Managers ====== ===== Pacman ===== * Upgrade everything: ''pacman -Syu'' * Install package: ''pacman -S <pkg>'' * Search packages: ''pacman -Ss <keywords>'' * Remove package * ''pacman -Rsn <pkg>'' * ''pacman -Rsc <pkg>'' * Modified files in package: ''pacman -Qkk <pkg>'' * File list of package: ''pacman -Ql <pkg>'' * Which package owns a file: ''pacman -Qo <file>'' * What does pkg depend on: ''pactree <pkg>'' * What depends on pkg: ''pactree -r <pkg>'' * List unneeded packages: ''pacman -Qdt'' * List explictly-installed packages: ''pacman -Qe'' * List information on package: ''pacman -Qii <pkg>'' * Search installed packages for keywords: ''pacman -Qs <query>'' * Downgrade package: ''pacman -U /var/cache/pacman/pkg/linux-5.7.8.arch1-1-x86_64.pkg.tar.zst '' ===== Reflector ===== ''sudo reflector --verbose --latest 200 --country Germany --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist'' ===== How to Install an AUR helper ===== === package-query === <code>git clone https://aur.archlinux.org/package-query.git cd package-query/ makepkg -si cd .. rm -rf package-query/ </code> === yay === <code>git clone https://aur.archlinux.org/yay.git cd yay makepkg -si cd .. rm -rf yay/ </code> ===== Delete cached files ===== ==== pacman ==== Deletes cached versions of installed and uninstalled packages, except for the most recent 2: <code>paccache -r -k2</code> Remove package cache and currently unused sync databases: <code>pacman -Sc</code> ==== yay ==== Remove cached AUR package and any untracked Files in the cache (caution: this command removes pacman caches as well): <code>yay -Scc</code> arch_package_managers.txt Last modified: 2024/03/18 07:58by tmaier