Felhasználói eszközök

Eszközök a webhelyen


arch

Pacman cheatsheet

Common commands
  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

Install from file:

  pacman -U <package.zst>

Force overwrite files:

  pacman -S <pkg> --overwrite <pattern>
  pacman -S <pkg> --overwrite \*
Query
  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
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 <pkg>      # What does pkg depend on?
  pactree -r <pkg>   # 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 <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.
arch.txt · Utolsó módosítás: szerkesztette: daevidt