Skip to content

Instantly share code, notes, and snippets.

@tanyuan
Created February 29, 2016 03:48
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tanyuan/144e5e269c8765b75b8f to your computer and use it in GitHub Desktop.
Save tanyuan/144e5e269c8765b75b8f to your computer and use it in GitHub Desktop.
Useful commands for pacman and yaourt.

Arch Linux Pacman & Yaourt Package Manager

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

Yaourt (AUR)

Update all packages including official repo

yaourt -Syua

Settings

cp /etc/yaourtrc ~/.yaourtrc

Add so do not confirm on package building:

BUILD_NOCONFIRM=1
EDITFILES=0

What if yaourt fails

Temporary files store at:

/tmp/yaourt-*

Edit BUILDPKG to fix the problem. Then:

makepkg
pacman -U *.pkg.tar.xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment