In this tutorial, you will learn how to install pacman on Arch Linux.
pacman is the default package manager for Arch Linux, and it doesn't only let you download a package from Arch Linux repositories, but it also installs the dependencies of the package that you are downloading.
pacman is already installed on Arch Linux. However, there are cases when pacman doesn't work, and if pacman is the only package manager on your system, then you need to either fix your current pacman or install it again.
In this tutorial, we'll be installing pacman via pacman static on Arch Linux.
Step 1 - Download Pacman Static
Pacman static is a precompiled binary of pacman, which means you can simply run it without having to install it.
Pacman static can be downloaded from Pkgbuild.com, which is an official domain owned by Arch Linux.
To download Pacman static, you can do so by using wget.
wget -q https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static
Step 2 - Make Pacman Static executable
In order to run the precompiled binary file that you downloaded, first you must make it executable.
pacman-static executable, so that you can run pacman, simply run the command below.
chmod +x pacman-static
Step 3 - Use pacman-static
Assuming that your current pacman installation is broken, then you need to reinstall pacman using the pacman-static binary.
To do so, simply run the command below.
sudo ./pacman-static -S pacman
Once you install pacman by using
pacman-static, then you should be able to use
In this tutorial, you learned how to install Pacman on Arch Linux, by using pacman-static. A precompiled binary of pacman, which allows you to use pacman when pacman is broken or not installed.