Support #509
Updated by Daniel Curtis over 9 years ago
Yaourt is a great tool for easily installing packages from the Arch User Repository. This is a simple guide for installing and basic usage of yaourt. h2. Prepare the Environment * Make sure the system is up to date: <pre> pacman -Syu </pre> * Install the base-devel, sudo, and wget packages: <pre> pacman -S base-devel wget sudo </pre> * Add the sudo group: <pre> groupadd sudo </pre> * Edit the sudo file: <pre> visudo </pre> #* And uncomment the line for the sudo group <pre> %sudo ALL=(ALL) ALL </pre> * Makepkg will not work as root, so make an unprivileged user: <pre> useradd -m -g users -s /bin/bash bob </pre> #* Add the user bob to the sudo group: <pre> usermod -aG sudo bob </pre> h2. Install yaourt * Switch to the unprivileged user, bob: <pre> su - bob </pre> * Download the packages for yaourt: <pre> cd /tmp wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz && wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz tar xzf package-query.tar.gz tar xzf yaourt.tar.gz </pre> #* Install package-query: <pre> cd package-query makepkg -csi </pre> #* Install yaourt <pre> cd ../yaourt makepkg -csi </pre> h2. Using yaourt * You can install packages (including AUR packages) with <pre> yaourt packagename </pre> #* or <pre> yaourt -Sa packagename </pre> * You can update your system including AUR packages with: <pre> yaourt -Syua </pre> See the yaourt manual page for more information. h2. Examples * Search and install: <pre> yaourt search pattern </pre> * Sync database, upgrade packages, search the AUR and devel (all packages based on cvs, svn, git, bzr(...)-version) upgrades: <pre> yaourt -Syua --devel </pre> * Build package from source: <pre> yaourt -Sb package </pre> h2. Resources * https://wiki.archlinux.org/index.php/yaourt