How To Install Or Remove A Software Package In Arch Linux, Manjaro?

How To Install Or Remove A Software Package In Arch Linux, Manjaro?

   

This post was last updated on August 1st, 2020 at 12:17 pm

Different Linux distribution comes with different tools to manage software packages on it. Pacman-based Linux distributions such as Arch Linux, Manjaro, etc use the Pacman package manager to install, remove, or manage software packages on them.

In this article, we will discuss installing and removing software packages from the command line in Arch Linux and Manjaro. This also applies to other Pacman based Linux distributions.

Pacman package manager

Pacman is a tool used by Arch Linux and other similar distributions to install, remove, and upgrade the software packages. It uses binary packages in a .tar.xz format with an easy to use build system. Pacman keeps the system up to date by synchronizing the package list with the master server.

How to install a package in Arch Linux, Manjaro

To install a software package in Arch Linux, Manjaro, and other Pacman based Linux distribution you need to execute the following command in your terminal. You can use a single package or a list of packages with the following command –

sudo pacman -S package_name(s)

or

sudo pacman --sync package_name(s)

For example –

sudo pacman -S vlc

The above command will install the package including dependencies. If you want to install multiple software packages in a single command then mention the package name with a single space.

How to remove a package in Arch Linux, Manjaro

Now to remove an installed software package in Arch Linux, Manjaro and other Pacman based Linux distribution you need to execute the following command in the terminal –

sudo pacman -R package_name(s)

or

sudo pacman --remove package_name(s)

This will remove the given package or packages. For example –

sudo pacman -R vlc

Now if you want to remove multiple packages in a single command then use the package name with a single space among them in the above command.

How to update Arch Linux, Manjaro

For the full system update use the following command in the terminal –

sudo pacman -Syu

The following command will refresh the database and synchronize the local database with the remote database.

sudo pacman -Sy

Use the following command if you want to Ignore upgrades to a given package or packages.

sudo pacman -S --ignore package_name(s)

Conclusion

Now by reading this article you are able to install or remove a software package from a Pacman-based Linux distribution. If you have any thoughts on the topic you can share it with us in the comments below.

Previous Split Personality Snaps
Next How Manually Partition A Disk During Installation of Ubuntu?

About author

You might also like

How To 0 Comments

How To Install Apache Tomcat In Ubuntu 20.04 LTS?

This post was last updated on August 1st, 2020 at 01:51 pmApache Tomcat or simply Tomcat is a web server and servlet container that is used to serve Java applications.

Linux Topics 0 Comments

How To Set JAVA_HOME Environment Variable For All Users In Linux?

This post was last updated on August 1st, 2020 at 12:51 pmAn environment variable is a variable whose value is set outside the program, Typically through a functionality built into

FreeBSD Topics 0 Comments

How To Install And Configure Xfce In FreeBSD?

This post was last updated on August 1st, 2020 at 10:30 amXfce is a free and opensource desktop environment that aims to be lightweight, fast, and low on system resources

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply