Project

General

Profile

Support #509

Install Yaourt on Arch Linux

Added by Daniel Curtis over 5 years ago. Updated about 4 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

History

#1 Updated by Daniel Curtis over 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Daniel Curtis over 5 years ago

  • Status changed from Resolved to Closed

#3 Updated by Daniel Curtis over 5 years ago

  • Category set to Package Management
  • Target version set to Arch Linux

#4 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#5 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#6 Updated by Daniel Curtis over 5 years ago

  • Description updated (diff)

#7 Updated by Daniel Curtis about 5 years ago

  • Description updated (diff)

#8 Updated by Daniel Curtis about 4 years ago

  • Description updated (diff)

Also available in: Atom PDF