18 C
Jaipur
Sunday, November 22, 2020

How to Use the AUR with Arch Linux – Linux Hint

Must read

Black Friday smartwatch deals: all the best Apple Watch, Wear OS and Fitbit discounts

If you're scouring the Black Friday deals looking for a great new smartwatch, then you're in luck. We've put together this guide on all...

Black Friday laptop deals start at just $129 at Best Buy

Black Friday laptop deals picking up steam now that we're less than a week away from the big day itself. That means there's some...

Best Buy Black Friday deals are live: 4K TVs, Nintendo Switch, laptops, and more

Best Buy Black Friday deals have officially launched at the 2020 sale that kicked off just days away from the big day. The retailer...

Hurry – the Apple Watch SE drops to its lowest price ever in epic Black Friday deal

Black Friday deals have arrived at Amazon and we've spotted a rare price cut on the all-new Apple Watch. Right now, you can get...

The AUR, which stands for Arch Unit Repository, is used to install software pertinent to Arch Linux and otherArch distributions in the Linux operating system. But, before diving deep into the procedure for using AUR with Arch Linux, it is crucial to comprehend the concept of the AUR. Using the AUR not only enhances the efficacy of the system, but it also provides easy installation of various applications and packages. This guide provides an introduction to AUR, methods for using the AUR, and reasons to opt for the AUR. The step-by-step procedure provided in this article will allow you to run and install apps effectively via the AUR and its respective packages.

Arch Unit Repository (AUR)

The AUR constitutes an important part of the overall Arch Linux nexus. Inherently, the AUR is a community-driven repository that hosts a versatile range of installation packages in the Arch Linux operation system. The AUR also allows you to host packages extrinsic to the domain of the official Arch Linux database. One beneficial factor of the AUR is that most of the packages in this repository adhere to the AUR before officially becoming part of the Arch Linux database.

This conventionally follows the sequential criteria constituting the three cardinal packages. PKGBuilds allows the user access to the package source through the makepkg, and you can install the software or application by incorporating Pacman, the root package manager of the Arch Linux operating system.

The core purpose of the AUR is to delegate the information of community packages for the deposition of such packages in the repository of a community depository, along with the Linux database. The AUR community can select packages to become a part of the community repository, given the attributes of prevalence and license authenticity.

Function of AUR

The AUR allows you to select a file from the PKGBuild depository and then automatically form a package yourself. Those who have a firm grasp over the functioning of AUR can effectively use it, but for beginners, it is recommended to form the basics of Arch Linux and its distributions before starting with the AUR.

The AUR constitutes many types of packages, so the updated packages come with distinct names to avoid clashing in the depository over programs with identical names. Programmers are inclined towards the use of the AUR for the installation of packages because it is a secure approach with updated packages. Installing a package through the AUR is relatively easy and hassle-free.

Using AUR in Arch Linux

The AUR can assist greatly in downloading and installing programs and packages in Arch Linux and its associated distributions, such as Manjaro. You can install the AUR by following the two steps listed below:

  • Step 1: Install AUR
  • Step 2: Enable AUR

Prerequisites

The perquisites for installing and using AUR in Arch Linux are justified by the need for appropriate tools like git and the repository of the clone. These tools are an essential component of installing and using the AUR in Arch Linux.

$ sudo pacman -S git base-devel

Installing the AUR

The installation of the AUR in Arch Linux can be categorized into two methods:

  • Install AUR with the AUR helper
  • Install AUR without the AUR helper

Install AUR with the AUR Helper

If you wish to install the Arch Unit Repository through the AUR helper, then you might consider the active and well-maintained helpers named auracle-git, aurutils, trizen, yay, and pacaur.

Choose one of the helpers and proceed with installing the AUR on your Arch Linux system. Once the prerequisites are fulfilled in the system in updated form, you can easily install the AUR in Linux. Issue the following commands to do install the AUR package on your server:

$ git clone https://aur.archlinux.org/yay.git

To apply the changes, the active directory of the package issues the following command:

To start the building process, enter the following command:

The helper I have selected to install the packages of AUR is yay. You can opt for other helpers, as well, according to your preferences. To install the packages, issue the following command:

Replace the package name in the above command with the package that you wish to install.

Install AUR Without the AUR Helper

It is not necessary to always go for the AUR helper to install AUR along with its respective packages on Arch distributions. But, for this, you must verify certain aspects of the desired packages that you might confront on the AUR page. Pay close heed to the following categories before installing any AUR package:

  • Dependencies
  • Popularity
  • License
  • Latest Update

When you get assistance from AUR helper, packages are automatically checked through trusted users. But, if you are downloading packages on your own, then you should check these credentials before installing the package in your main server.

$ git clone [package URL]

In the above command, place the URL of the package you wish to download from the AUR page.

For example, suppose you want to install the Telegram desktop package. Then, the above command will look like this:

$ git clone https://aur.archlinux.org/telegram-desktop-git.git

Now, apply the second command:

Simply input your package name in the above command to change the active depository of the package. For the telegram desktop package, this command will be modified as follows:

Now, run this final command, and your package will be installed successfully with the building program:

Conclusion

To sum it up, AUR makes using packages in Arch Linux easy. You can also decide whether to get support from the AUR helper. After following the steps mentioned above, you can use the AUR with Arch Linux without any problems.

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Black Friday smartwatch deals: all the best Apple Watch, Wear OS and Fitbit discounts

If you're scouring the Black Friday deals looking for a great new smartwatch, then you're in luck. We've put together this guide on all...

Black Friday laptop deals start at just $129 at Best Buy

Black Friday laptop deals picking up steam now that we're less than a week away from the big day itself. That means there's some...

Best Buy Black Friday deals are live: 4K TVs, Nintendo Switch, laptops, and more

Best Buy Black Friday deals have officially launched at the 2020 sale that kicked off just days away from the big day. The retailer...

Hurry – the Apple Watch SE drops to its lowest price ever in epic Black Friday deal

Black Friday deals have arrived at Amazon and we've spotted a rare price cut on the all-new Apple Watch. Right now, you can get...

Thiem vs Medvedev live stream: how to watch free ATP Final tennis from anywhere

Is this the moment men's tennis has been waiting for? The new generation triumphed over the old on Saturday, to set up an ATP...