Skip to content

Instantly share code, notes, and snippets.

@ttys3
Forked from tanyuan/pacman.md
Last active Sep 26, 2021
Embed
What would you like to do?
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