Pamac is the package manager of Manjaro based on libalpm which also supports Appstream, AUR, Flatpak and Snaps. Being an alternative to pacman it focuses on providing an easy-to-use interface whether it is GUI or CLI.
Arch Linux relies on the pacman commands for package management. You may get a GUI-based software center from your desktop environment.
However, if you want to install the fabulous Pamac package manager in Arch Linux, you could do that.
In this tutorial, Iโll show you two methods to do that:
- Installing from the AUR
- Installing from the Chaotic-AUR (Recommended as the developers of Garuda Linux sign packages)
Both are command line methods, but you are an Arch user, and I believe you can handle the command line a bit, can you not?
Method 1: Installing Pamac from the AUR
If you have an AUR helper like Yay installed already, getting Pamac is really easy.
yay -S pamac-aur
Otherwise, youโll have to go the challenging route.
First, update your system as Arch is a rolling release distribution and do not support partial upgrades. Enter the following command in the terminal to update your Arch Linux system.
sudo pacman -Syu
Then you need to install all the packages of the base-devel package group and git by entering the command below.
sudo pacman -S --needed base-devel git
Now you need to build and install archlinux-appstream-data-pamac, libpamac-aur and pamac-aur respectively.
Enter the following commands replacing the package name with packages you want to install for all the 3 packages.
git clone https://aur.archlinux.org/archlinux-appstream-data-pamac.git
cd archlinux-appstream-data-pamac
makepkg -si
In this case, the AUR package pamac-aur
have other AUR packages as dependencies. So you have to build and install them before installing the main package. This hassle can be avoided by using an AUR helper.
Building and installing packages from AUR may fail due to outdated PKGBUILD and there are plenty of them in the AUR. Also, you need to manually update AUR packages if there is an update, as AUR packages donโt update when you update your system with Pacman.
In my opinion, you should use the next method. You donโt have to bother building and updating Pamac manually when there is an update.
Method 2: Installing Pamac from the Chaotic-AUR (Recommended)
Chaotic-AUR is a repository for Arch Linux maintained by the developers of Garuda Linux. Packages of this repo are signed and can be trusted. When you add this repo, you can install Pamac using Pacman directly.
Letโs add the repo by entering the following commands.
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
The above command just installs the keyring and mirrorlist for the repo. You also have to add the repo to the end of /etc/pacman.conf. Here I will use nano to edit the file.
sudo nano /etc/pacman.conf
This is what you need to add to the end of the file:
[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist
The resulting file should look something like this.
...
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist
Now update your system using the following command for the chaotic mirror database to update and also install pamac:
sudo pacman -Syu pamac
Once installed, you can access the GUI from Application Menu and CLI using the pamac command. You may also find it as "Add/Remove software from your system" in your menu entry.
In case you donโt like Pamac, you can remove it along with its dependencies and configuration files using pacman via the following command:
sudo pacman -Rns pamac-aur
Conclusion
When I started using Arch Linux, I was also very skeptical about installing AUR packages as they took a long time to build and many times refused to build due to outdated PKGBUILD. I wish we had Chaotic-AUR earlier kudos to the Garuda Linux developers.
Note that there are other variants of Pamac available in the AUR which support Flatpak and Snaps. But in this tutorial, I have mentioned the variant with only Appstream and AUR support.
Whatโs your opinion on adding a 3rd party repos like Chaotic-AUR on Arch Linux? Which method would you use to install Pamac?