From 837042f71802e8df97dba8115eafca1d9c5d2b38 Mon Sep 17 00:00:00 2001 From: Manu Date: Tue, 3 Sep 2013 05:39:24 +0200 Subject: [PATCH] Added yaourt (Yet AnOther User Repository Tool) cheatsheet --- cheatsheets/pacman | 11 +++++++++++ cheatsheets/yaourt | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 cheatsheets/yaourt diff --git a/cheatsheets/pacman b/cheatsheets/pacman index bffe1f5..e348ea2 100644 --- a/cheatsheets/pacman +++ b/cheatsheets/pacman @@ -30,3 +30,14 @@ pacman -Qe # To list orphan packages (installed as dependencies and not required anymore) pacman -Qdt + +# You can't directly install packages from the Arch User Database (AUR) with pacman. +# You need yaourt to perform that. But considering yaourt itself is in the AUR, here is how to +build a package from its tarball. +# First, get the .tar.gz archive and unpack it +wget +tar -xzf +cd +# Then build the package and install it +makepkg -s +pacman -U diff --git a/cheatsheets/yaourt b/cheatsheets/yaourt new file mode 100644 index 0000000..f3a6ec1 --- /dev/null +++ b/cheatsheets/yaourt @@ -0,0 +1,23 @@ +# All pacman commands are working the same way with yaourt. +# Just check the pacman cheatsheet. +# For instance, to install a package : +pacman -S +yaourt -S +# The difference is that yaourt will also query the Arch User Repository, +# and if appropriate, donwload the source and build the package requested. + +# Here are the commands yaourt provides while pacman doesn't : + +# To search for a package and install it +yaourt + +# To update the local package base and upgrade all out of date package, including the ones from +AUR and the packages based on development repos (git, svn, hg...) +yaourt -Suya --devel + +# For all of the above commands, if you want yaourt to stop asking constantly for confirmations, +use the option --noconfirm + +# To build a package from source +yaourt -Sb +