Felhasználói eszközök

Eszközök a webhelyen


arch

Különbségek

A kiválasztott változat és az aktuális verzió közötti különbségek a következők.

Összehasonlító nézet linkje

Következő változat
Előző változat
arch [2020/12/15 21:09] – létrehozva daevidtarch [2026/01/13 10:31] (aktuális) daevidt
Sor 1: Sor 1:
 +=== Pacman cheatsheet ===
 +source: [[ https://devhints.io/pacman ]]
 +== Common commands ==
 +<code bash>
 +  pacman -Syu <pkg>     # Install (and update package list)
 +  pacman -S <pkg>       # Install only
 +  pacman -Rsc <pkg>     # Uninstall
 +  pacman -Ss <keywords> # Search
 +  pacman -Syu           # Upgrade everything
 +</code>
 +
 +Install from file:
 +
 +<code bash>
 +  pacman -U <package.zst>
 +</code>
 +
 +Force overwrite files:
 +
 +<code bash>
 +  pacman -S <pkg> --overwrite <pattern>
 +  pacman -S <pkg> --overwrite \*
 +</code>
 +
 +== Query ==
 +<code bash>
 +  pacman -Qe            # List explictly-installed packages
 +  pacman -Ql <pkg>      # What files does this package have?
 +  pacman -Qii <pkg>     # List information on package
 +  pacman -Qo <file>     # Who owns this file?
 +  pacman -Qs <query>    # Search installed packages for keywords
 +</code>
 +
 +== Orphans ==
 +<code bash>
 +  pacman -Qdt                  # List unneeded packages
 +  pacman -Rns $(pacman -Qdtq)  # Uninstall unneeded packages
 +</code>
 +Avoid orphans by using ''pacman -Rsc'' to remove packages, which will remove unneeded dependencies.
 +
 +== Other ==
 +<code bash>
 +  pactree <pkg>      # What does pkg depend on?
 +  pactree -r <pkg>   # What depends on pkg?
 +</code>
 +
 === Key problems === === Key problems ===
  
 Things to try: Things to try:
  
 +<code bash>
   pacman-key --refresh-keys   pacman-key --refresh-keys
   pacman-key --list-keys   pacman-key --list-keys
   edit /etc/pacman.d/gnupg/gpg.conf   edit /etc/pacman.d/gnupg/gpg.conf
-  +</code> 
 Re-initialize keyring: Re-initialize keyring:
  
 +<code bash>
   rm -r /etc/pacman.d/gnupg   rm -r /etc/pacman.d/gnupg
   pacman-key --init   pacman-key --init
   pacman-key --populate archlinux   pacman-key --populate archlinux
   pacman -S archlinux-keyring   pacman -S archlinux-keyring
 +</code>
 +
 +=== 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 ]]
 +
 +<code bash>
 +  paru <target> # Interactively search and install <target>.
 +
 +  paru # Alias for paru -Syu.
 +
 +  paru -S <target> # Install a specific package.
 +
 +  paru -Sua # Upgrade AUR packages.
 +
 +  paru -Qua # Print available AUR updates.
 +
 +  paru -G <target> # Download the PKGBUILD and related files of <target>.
 +
 +  paru -Gp <target> # Print the PKGBUILD of <target>.
 +
 +  paru -Gc <target> # Print the AUR comments of <target>.
 +
 +  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.
 +
 +</code>
arch.1608066579.txt.gz · Utolsó módosítás: szerkesztette: daevidt