Home Antergos How To Install Pacaur In Arch Linux
adjust the size of the Root Partition on live Arch Linux

How To Install Pacaur In Arch Linux

By sk
837 Views

Important Update:

Please don’t use Pacaur. It is out dated and discontinued. Use Yay AUR helper instead. https://ostechnix.com/yay-found-yet-another-reliable-aur-helper/


We already have covered the installation and usage of two AUR helpers namely YayYaourt and Packer. Today, we are going to discuss about yet another AUR helper program called "Pacaur". It reduces the user interaction greatly while installing packages from AUR. Unlike Yaourt and Packer, Pacaur can install packages from both the official repositories and AUR. That said, Pacaur can be used by users who prefer to have a single tool to manage the official and AUR repositories, or by users who prefer to keep their AUR frontend separated from pacman. Also, the syntax of Pacaur is same as Pacman, the default package manager. So, you don't have to memorize commands. If you know how to use pacman, then it wouldn't be a problem to use Pacaur. It will also automatically prompt for sudo access when needed. It is built upon the well designed cower and expac C backends.

Install Pacaur In Arch Linux

First, install the necessary dependencies.

sudo pacman -S expac yajl --noconfirm

Next, create a temporary working directory for building packages as normal user (Remember: not root user).

mkdir ~/tmp

Go to that directory and download and install Cower as shown below.

cd ~/tmp/
gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower
makepkg -i PKGBUILD --noconfirm

Then, download and install Pacaur package.

curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur
makepkg -i PKGBUILD --noconfirm

Finally, cleanup the temporary working directory:

cd
rm -r ~/tmp

Usage

Like I said already, Pacaur supports all pacman operations (such as -S, -Ss, -Si, -Sw, -Su, -Qu, -Sc, -Scc) and by default extends respectively its sync, search, info, download only, system upgrade, upgrades check, clean and clean all functions to the AUR. However, this extension behavior is optional and can be disabled with the fallback variable in the config file.

To install a package, run:

pacaur -S <package-name>

To update a package:

pacaur -u <package-name>

Also, you can update the packages from both official repositories and AUR using command:

pacaur -Syyu

To update the packages only from AUR, run:

pacaur -u --noconfirm

For more details about Pacaur, refer man pages.

man pacaur

Also Read: How To Speed Up Compilation Process When Installing Packages From AUR


And, that's all for today. Hope you find this guide useful. We will be posting more useful guides every day. Keep visiting.

Cheers!

Resource:

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You May Also Like

5 comments

Néstor Vasquez M. September 21, 2017 - 9:29 pm

Error: binary strip not found 🙁

Reply
SK September 22, 2017 - 11:43 am Reply
Néstor Vasquez M. September 22, 2017 - 11:03 pm

I tried your way: On step 6—> Starting build()…
/home/manjaro/tmp/PKGBUILD: line 20: make: command not found
==> ERROR: A failure occurred in build().
Aborting…

Reply
SK September 23, 2017 - 1:07 pm

Install cmake and try.

Reply
Maotora December 10, 2017 - 5:00 pm

Hey, Thank you. 🙂
Was skeptical, but then I looked at it.
and tried it.
Worked without a problem. 🙂

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More