arch_package_managers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
arch_package_managers [2020/11/13 22:10] tmaierarch_package_managers [2024/03/18 07:58] (current) – [How to Install an AUR helper] tmaier
Line 4: Line 4:
   * Upgrade everything: ''pacman -Syu''   * Upgrade everything: ''pacman -Syu''
   * Install package: ''pacman -S <pkg>''   * Install package: ''pacman -S <pkg>''
 +  * Search packages: ''pacman -Ss <keywords>''
   * Remove package   * Remove package
     * ''pacman -Rsn <pkg>''     * ''pacman -Rsn <pkg>''
Line 9: Line 10:
   * Modified files in package: ''pacman -Qkk <pkg>''   * Modified files in package: ''pacman -Qkk <pkg>''
   * File list of package: ''pacman -Ql <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 ''
  
-==== How to Install an AUR helper ====+===== 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 === === package-query ===
Line 26: Line 39:
 cd yay cd yay
 makepkg -si makepkg -si
 +cd ..
 rm -rf yay/ rm -rf yay/
  
 </code> </code>
  
-==== Delete cached files ==== +===== Delete cached files ===== 
-=== pacman ===+==== pacman ====
 Deletes cached versions of installed and uninstalled packages, except for the most recent 2: Deletes cached versions of installed and uninstalled packages, except for the most recent 2:
 <code>paccache -r -k2</code> <code>paccache -r -k2</code>
Line 38: Line 52:
 <code>pacman -Sc</code> <code>pacman -Sc</code>
  
-=== yay ===+==== yay ====
 Remove cached AUR package and any untracked Files in the cache (caution: this command removes pacman caches as well): Remove cached AUR package and any untracked Files in the cache (caution: this command removes pacman caches as well):
-<code>yay -Sc</code>+<code>yay -Scc</code>
  • arch_package_managers.1605301858.txt.gz
  • Last modified: 2020/12/29 02:09
  • (external edit)