arch_package_managers

This is an old revision of the document!


Arch Package Managers

  • Upgrade everything: pacman -Syu
  • Install package: pacman -S <pkg>
  • Remove package
    • pacman -Rsn <pkg>
    • pacman -Rsc <pkg>
  • Modified files in package: pacman -Qkk <pkg>
  • File list of package: pacman -Ql <pkg>

package-query

git clone https://aur.archlinux.org/package-query.git
cd package-query/
makepkg -si
cd ..
rm -rf package-query/

yay

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
rm -rf yay/

pacman

Deletes cached versions of installed and uninstalled packages, except for the most recent 2:

paccache -r -k2

Remove package cache and currently unused sync databases:

pacman -Sc

yay

Remove cached AUR package and any untracked Files in the cache (caution: this command removes pacman caches as well):

yay -Sc
  • arch_package_managers.1605301858.txt.gz
  • Last modified: 2020/12/29 02:09
  • (external edit)