One of the main reasons that a user chooses Arch Linux or an Arch based Linux distribution is the Arch User repository (AUR).
Unfortunately, pacman, the package manager of Arch, can’t access the AUR in a similar way to the official repositories. The packages in AUR are in the form of PKGBUILD and require a manual process to be built.
An AUR helper can automate this process. Without any doubt yay is one of the most popular and highly favoured AUR helper.
Recently Morganamilo, one of the two developers of yay, announced that is stepping away from maintaining yay and starting his own AUR helper called paru. Paru is written in Rust compared to yay that is written in Go and its design is based on yay.
Please note that yay hasn’t reach the end of life and is still being actively maintained by Jguer. He also commented that paru may be suitable for users that looking for a feature rich AUR helper; thus I would recommend giving it a try.
Installing Paru AUR helper
To install paru, open your terminal and type the following commands one by one.
sudo pacman -S --needed base-devel git clone https://aur.archlinux.org/paru.git cd paru makepkg -si
Now that you have it installed, let’s see how to use it.
Essential commands to use Paru AUR helper
In my opinion these are the most essential commands of paru. You can explore more on the official repository on GitHub.
- paru <userinput> : Search and install <userinput>.
- paru — : Alias for paru -Syu
- paru -Sua : Upgrade AUR packages only
- paru -Qua : Print available AUR updates
- paru -Gc <userinput> : Print the AUR comments of <userinput>
Using Paru AUR helper to its full extent
You can access the changelog of paru on GitHub for the full changelog history or you can see the changes from yay at the first release.
Enable colour in Paru
To enable colour in paru, you have to enable it first in pacman. All the configuration files are in /etc directory. In this example, I use Nano text editor but, you may use any terminal-based text editor of your choice.
sudo nano /etc/pacman.conf
Once you open the pacman configuration file, uncomment the “Color” to enable this feature.
Flip search order
The most relevant package according to your search term is normally displayed on the top of the search result. In paru, you can flip the search order to make your search easier.
Similar to the previous example, open the paru configuration file:
sudo nano /etc/paru.conf
Uncomment the “BottomUp” term and save the file.
As you can see the order is flipped and the first package appears on the bottom.
Edit PKGBUILDs (For advanced user)
If you are an experienced Linux user, you can edit AUR packages through paru. To do so, you need to enable the feature from the paru configuration file and set the file manager of your choice.
In this example I will use the default in the configuration file i.e. the vifm file manager. If you haven’t used it you may need to install it.
sudo pacman -S vifm sudo nano /etc/paru.conf
Open the configuration file and uncomment as shown below.
Let’s go back to the Google Calendar AUR package and try to install it. You will be prompted to review the package. Type yes and click enter.
Choose the PKGBUILD from the file manager and hit enter to view the package.
Any change that you make will be permanent and the next time you upgrade the package, your changes will be merged with the upstream package.
Paru is another interesting addition to the AUR helpers family with a promising future. At this point I wouldn’t suggest replacing yay as it is still maintained but definitely give paru a try. You can have both of them installed to your system and come to your own conclusions.
You can also try this tool that allows you to use Paru in a bit easier way.
To get the latest Linux news, subscribe to our social media to be among the first to get them whilst they are fresh!