Skip to content

Instantly share code, notes, and snippets.

@ttys3
Forked from tanyuan/pacman.md
Last active September 26, 2021 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttys3/7e76027970dd5fcefac8db75413745fd to your computer and use it in GitHub Desktop.
Save ttys3/7e76027970dd5fcefac8db75413745fd to your computer and use it in GitHub Desktop.
Useful commands for pacman and paru

Arch Linux Pacman & Paru (Feature packed AUR helper)

Pacman (Official)

Easter egg

Edit /etc/pacman.conf:

Under the # Misc options section, remove the # in front of Color and add the line ILoveCandy. Because Pac-Man loves candy.

Update all packages

sudo pacman -Syu

Install a package

sudo pacman -S PACKAGE

Remove a package along with dependency

sudo pacman -Rs PACKAGE

Search a package

Search the package online:

pacman -Ss PACKAGE

Search the package installed:

pacman -Q PACKAGE // show version
pacman -Qi PACKAGE // more information
pacman -Ql PACKAGE // list files

Paru (AUR)

Update all packages including official repo

paru

Settings

/etc/paru.conf

#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options

#
# GENERAL OPTIONS
#
[options]
PgpFetch
Devel
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always
BottomUp
#RemoveMake
#SudoLoop
#UseAsk
#CombinedUpgrade
#CleanAfter
#UpgradeMenu
NewsOnUpgrade

#LocalRepo
#Chroot
#MovePkgs

#
# Binary OPTIONS
#
[bin]
FileManager = vifm
#MFlags = --skippgpcheck
#Sudo = doas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment