If you are going to use an Arch-based distro, it will be very helpful to get familiar with package management on Arch Linux.
Here is the list of wiki articles worth reading:
https://wiki.archlinux.org/title/Category:Package_management
The package manager (the program used to download, install, update and remove software) on Arch Linux is pacman
. It can install any package that is in the ALPM format. Arch Linux (Stable) comes with four official repositories of packages: core
, extra
, community
, and multilib
. The packages in these repositories are packaged and maintained by Arch Linux developers and a group of volunteers known as Trusted Users.
In addition to the packages from official Arch Linux repositories, anyone can host their own repository. An example of this is the endeavouros
repository which is maintained by the EndeavourOS team.
Here is a short list of some of the more useful pacman
options:
Pacman can also install packages that are packaged locally, that is, not downloaded from any repository. To make a package yourself, you use a build script in the format of a PKGBUILD file, and the makepkg
utility. Then you can install such a package using pacman
. Such packages are called “foreign” since they do not come from any repository.
People can share PKGBUILD files among themselves, and the most popular place to find them is the Arch User Repository (AUR). This is not a repository in the sense above, as it does not contain any packages, only build instructions on how to make packages.
More info on how to build packages yourself:
An AUR helper is a program that automates the process of downloading, packaging and installing packages from the AUR. One such program is yay
, which provides a pacman
-like interface to the AUR. The main advantage of using an AUR helper is automatic updates of the AUR packages. In addition, yay
also acts as a pacman
wrapper so it can be used in place of pacman
to install packages from the repos. The main disadvantage of using an AUR helper is that automation often creates carelessness.
Here is a short list of what to pay attention to when using the AUR:
These are the basic of what one should know about package management. I know this is a lot to read, but I think it is worth the effort if one is using this OS.