There are two methods for manually installing packages from the AUR (Arch User Repository). You can either fetch the package via git or download the tar ball. I’ll explain both in a minute. We also need to install the development tools and configure sudo.
We need root so make sure you su.
$ su # pacman -Syyu && pacman -S base-devel wget git
Now we need to add our user to sudoers. I’ll be using the alarm group for example. Find the “User privilege specification” section, uncomment, and edit the “NOPASSWD:ALL” user to reflect your username or group.
# sudoedit /etc/sudoers
## ## User privilege specification ## root ALL=(ALL) ALL ## Uncomment to allow members of group wheel to execute any command # %wheel ALL=(ALL) ALL ## Same thing without a password %alarm ALL=(ALL) NOPASSWD: ALL ## Uncomment to allow members of group sudo to execute any command # %sudo ALL=(ALL) ALL
Save, quit, and drop down to your normal user.
The fun part is over lets get cracking. I’ll start with the git method. If you prefer manually downloading the tar ball skip to the next step.
$ git clone https://aur.archlinux.org/yay.git $ cd yay $ makepkg -si
$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/yay.tar.gz $ tar xvzf yay.tar.gz $ cd yay $ makepkg -si
Follow the prompts, install go, build the source, and it will automatically install the package.
Test it out and you’re good to go.
$ yay -Syyu