Project

General

Profile

Support #509

Install Yaourt on Arch Linux

Added by Daniel Curtis over 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Package Management
Target version:
Start date:
12/26/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

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.

Prepare the Environment

  • Make sure the system is up to date:
    pacman -Syu
    
  • Install the base-devel, sudo, and wget packages:
    pacman -S base-devel wget rsync sudo
    
  • Add the sudo group:
    groupadd sudo
    
  • Edit the sudo file:
    visudo
    
    • And uncomment the line for the sudo group
      %sudo    ALL=(ALL) ALL
      
  • Makepkg will not work as root, so make an unprivileged user:
    useradd -m -g users -s /bin/bash bob
    
    • Add the user bob to the sudo group:
      usermod -aG sudo bob
      

Install yaourt

  • Switch to the unprivileged user, bob:
    su - bob
    
  • Download the packages for yaourt:
    cd /tmp
    wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz && wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
    tar xzf package-query.tar.gz
    tar xzf yaourt.tar.gz
    
    • Install package-query:
      cd package-query
      makepkg -csi
      
    • Install yaourt
      cd ../yaourt
      makepkg -csi
      

Using yaourt

  • You can install packages (including AUR packages) with
    yaourt packagename
    
    • or
      yaourt -Sa packagename
      
  • You can update your system including AUR packages with:
    yaourt -Syua
    

See the yaourt manual page for more information.

Examples

  • Search and install:
    yaourt search pattern
    
  • Sync database, upgrade packages, search the AUR and devel (all packages based on cvs, svn, git, bzr(...)-version) upgrades:
    yaourt -Syua --devel
    
  • Build package from source:
    yaourt -Sb package
    

Resources

Also available in: Atom PDF