How to install yaourt in Arch Linux

last updated in Categories ,

How do I install yaourt in Arch Linux using the command line option? How can I install yaourt command in Archlinux?

Pacman is a package manager for Archlinux. It is useful for installing packages. You can search for packages, update packages and perform related duties. Yaourt is a command line interface tool. It suppose to complete pacman command for installing software on Archlinux. This page shows how to install and use Yaourt on Arch Linux to increase your productivity.

Install yaourt in Arch Linux

The procedure for installing yaourt on Archlinux is as follows:

  1. Open the terminal App
  2. Type the following commands as root user to install package-query:
    cd /tmp/ && git clone https://aur.archlinux.org/package-query.git
    cd package-query && makepkg -si && cd /tmp/
  3. Now install yaourt as root user:
    git clone https://aur.archlinux.org/yaourt.git
    cd yaourt && makepkg -si

Let us see all examples and syntax usage in details to install yaourt on Archlinux.

How to install git and base-devel packages

Type the following packman command to install git client if not installed your system:
$ sudo pacman -S git base-devel

Arch Linux Install base-devel
Using pacman to install deps

How to install package-query

Next install package-query:
$ cd /tmp/
$ git clone https://aur.archlinux.org/package-query.git
$ cd package-query && makepkg -si && cd /tmp/

Sample outputs:

==> Making package: package-query 1.9-2 (Fri Jan 19 08:10:27 UTC 2018)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
 
Packages (1) yajl-2.1.0-1
 
Total Download Size:   0.03 MiB
Total Installed Size:  0.16 MiB
 
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 yajl-2.1.0-1-x86_64                                                                                                   31.2 KiB  64.5K/s 00:00 [########################################################################################] 100%
(1/1) checking keys in keyring                                                                                                                 [########################################################################################] 100%
(1/1) checking package integrity                                                                                                               [########################################################################################] 100%
(1/1) loading package files                                                                                                                    [########################################################################################] 100%
(1/1) checking for file conflicts                                                                                                              [########################################################################################] 100%
(1/1) checking available disk space                                                                                                            [########################################################################################] 100%
:: Processing package changes...
(1/1) installing yajl                                                                                                                          [########################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

How to compile and install yaourt

Run the following commands:
$ cd /tmp/
$ git clone https://aur.archlinux.org/yaourt.git
$ cd yaourt && makepkg -si

Sample outputs:

How to install yaourt in Arch Linux
Installing yaourt on Arch Linux

How to use yaourt

General syntax is:
yaourt
yaourt [options]
yaourt -S pkg
yaourt --stats
yaourt --help

How do I search for packages?

$ yaourt list
$ yaourt htop
$ yaourt snapd

yaourt search for packages

How do I install htop package using yaourt?

Install package called htpo:
$ sudo yaourt -S htop
yaourt install package

See the yaourt website for more info.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.