AUR (Arch User Repository) is similar to openSUSE OBS and Ubuntu’s PPA in the sense that it’s purely user-driven. But unlike OBS and PPA, AUR doesn’t host pre-packaged packages. Essentially, AUR packages contain build instructions for compiling and installing packages. But don’t be intimidated, it’s very easy to compile and install packages from AUR. There are two ways to do it: use a tool like yaourt or do it manually.
Let’s talk about manual process as that’s where all the fun is. You can search for the desired package in AUR, let’s say, Google Chrome. I found three packages here. (I chose the stable version.) And download the snapshot of PKGBUILD (the file that contains build instructions).
Now change directory to where the tarball of PKGBUILD was downloaded and extract it with this command:
tar -xvf name_of_package.tar.gz
In my case it was
tar -xvf google-chrome.tar.gz
Once the content is extracted, cd into the content folder:
And now run the following command that will compile, package and install it. You won’t have to do anything but provide it with password, if needed, and confirm installation of dependencies:
The package is compiled and installed.