Installing local packages

By using pacman we can install packages other than the main repository of Arch Linux. Use the following command to install the packages

For local:

sudo pacman -U path_to_file.pkg.tar.xz

For remote package:

sudo pacman -U http://www.example.com/repo/example.pkg.tar.xz

Pacman command in Arch Linux

Pacman is a package manager for the arch Linux and arch-based Linux distributions. If you have used Debian-based OS like ubuntu, then the  Pacman is similar to the apt command of Debian-based operating systems. Pacman contains the compressed files as a package format and maintains a text-based package database. Pacman keeps the system up to date by synchronizing package lists with the master server. Pacman can install the packages from the official repositories or your own build packages.

In this article, we are going to see how to use Pacman to manage the software in arch-based systems. Now let’s see how to use Pacman.

Similar Reads

Installing Packages using the Pacman

When we install any new operating system on our machine, the first task we do is to install the software packages on the system. Now, to install the packages on Arch Linux, use the command Pacman with -S option and mention the package name. The -S option tells the Pacman to synchronize and to continue. Here is one example...

Removing packages using the Pacman

When we don’t need the package anymore, then we should remove the package from the system. To remove the package with all its dependencies which are not required by other packages, use the following command:...

Upgrading packages

In arch Linux, we can upgrade the full system by only one command using the Pacman. Use the following command to update the system:...

Searching for a Package

Now let’s see how we can search the package into the database of pacman. To search query in the name and description  of the package in the database use the following command:...

Cleaning the Package Cache

When pacman downloads the packages it stores the packages into the /var/cache/pacman/pkg/ and while uninstalling the package pacman does not delete these files. Pacman uses these files to downgrade the package or install the package. But it can take a lot of space to store these packages. So to delete the stored packages, use the following command:...

Installing local packages

By using pacman we can install packages other than the main repository of Arch Linux. Use the following command to install the packages...

Troubleshooting

Sometimes installing the packages with pacman we face some errors. Following are the mainly occurred errors with pacman:...