Installing AUR packages
Tags: archlinux, manjaro, artix, aur
Published: 2018-11-08 08:44:34

---
title: Installing AUR packages
published: true
description: Arch Linux is supported by AUR, which hosts a large number of packages. We can make our environment more convenient or more powerful by making good use of them. This is also the case about Linux distributions based on Arch Linux such as Manjaro and Artix.
tags: archlinux, manjaro, artix, aur
cover_image: https://thepracticaldev.s3.amazonaws.com/i/97idyw8ro091y6p1g83j.jpg
---

# Summary

[Arch Linux](https://www.archlinux.org/) is one of the most popular Linux distributions.
It's supported by [AUR](https://aur.archlinux.org/), "A"rch Linux "U"ser "R"epository, which is a very big community of Arch users and developers, and hosts a large number of packages.
We can make our environment more convenient or more powerful by making good use of them.

This is also the case about [Linux distributions based on Arch Linux](https://distrowatch.com/search.php?basedon=Arch#simple) such as [Manjaro](https://manjaro.org/) and [Artix](https://artixlinux.org/).

---

### Reference: [AUR User Guidelines](https://wiki.archlinux.org/index.php/AUR_User_Guidelines)' Statement

The beginning is:

> The Arch User Repository (AUR) is a community-driven repository for Arch users. It contains package descriptions (PKGBUILDs) that allow you to compile a package from source with makepkg and then install it via pacman. The AUR was created to organize and share new packages from the community and to help expedite popular packages' inclusion into the community repository. This document explains how users can access and utilize the AUR.
> 
> A good number of new packages that enter the official repositories start in the AUR. In the AUR, users are able to contribute their own package builds (PKGBUILD and related files). The AUR community has the ability to vote for packages in the AUR. If a package becomes popular enough — provided it has a compatible license and good packaging technique — it may be entered into the community repository (directly accessible by pacman or abs).

And it's followed by:

> **Warning**: AUR packages are user produced content. Any use of the provided files is at your own risk.

---

Well, I recommend to Manjaro users searching in Manjaro Package Manager before using AUR.
If there is some solution in the more reliable place, why wouldn't you visit there first?
And if there isn't any there, then think another way:

![](https://thepracticaldev.s3.amazonaws.com/i/4fwxmsa3xdpx7zgn1txy.jpg)

<center>✿✿✿</center>

# How To Use

### A Brief Account

**Get "Git Clone URL", `git clone` it, `makepkg -si` it**, and it's done.

### Step 1: Get "Git Clone URL"

Visit AUR: https://aur.archlinux.org/ and search a package:

![](https://thepracticaldev.s3.amazonaws.com/i/vo0ehowm804u3jd7ums2.png)

Go to the package page:

![](https://thepracticaldev.s3.amazonaws.com/i/9lwgqg6me6bxcim3a0wn.png)

Get "Git Clone URL":

![](https://thepracticaldev.s3.amazonaws.com/i/xnec3olcm50ww8yq1sj3.png)

Confirm "Licence", "Popularity", "Last Updated", "Dependencies" and so on as needed:

![](https://thepracticaldev.s3.amazonaws.com/i/uzc37qlzzw15izmlupi6.png)

### Step 2: Build The Package And Install It

`git clone [the package]`, `cd [the package]`, `makepkg -si`, and it's done!

This is an example of a package called qperf.
*\* Note: qperf is a tool to measure network bandwidth and latency between nodes.*

The 1st half step:

```shell-session
$ # git clone [the package]
$ git clone https://aur.archlinux.org/qperf.git
```
The 2nd half step:

```shell-session
$ # cd [the package]
$ cd qperf
$ makepkg -si
```
Finished 😁

# A Side Topic

Actually, around installing qperf, however, there were not a single troubles on the way...

{% link https://dev.to/nabbisen/troubleshooting-around-installing-aur-packages-neg %}

After all, I completed installing the package 😃