contador web Skip to content

Basic commands for those coming to Arch Linux and Manjaro

Diolinux

If you are coming to the Linux world and are starting it through Arch Linux or Manjaro, these commands will help you a lot on your system journey. Let’s talk about the pacman package manager.

This article is also for those coming from the Debian / Ubuntu base and looking for commands equivalent to apt. Remembering to always check that the commands are typed correctly, so that there are no flaws.

Let’s do it in a “table layout”, where on top is the base command (s) Debian / Ubuntu and below are the commands for Arch Linux and Manjaro, close? So let’s go.

Let’s start with the basics, which is to update the system packages.

sudo apt-get update / sudo apt update         

-Sy pacman = synchronize the repositories.

-Su pacman = search for update.

pacman -Syu = synchronize the repositories / search for updates.

When you need to update packages and dependencies:

sudo apt-get upgrade / sudo apt upgrade / sudo apt-get dist-upgrade / sudo apt full-upgrade

sudo pacman -Syyu = full synchronization / search for update.

sudo pacman -Syy = synchronizes Manjaro Linux repositories.

When we need to search for a program via terminal, we use these commands:

apt-cache search package_name / apt search package_name

sudo pacman -Ss package_name = search for a package.

That done, it’s time to install the package (s), and it’s a pretty easy task. In Manjaro / Arch Linux there are some “Plus”:

sudo apt-get install package / sudo apt-get install package 1 package 2… / sudo apt-get install -y package / yet sudo apt install package

sudo pacman -S package_name = install a package

sudo pacman -Sw package_name = just download the package and do not install it.

After finding the desired and installed package, if you want to see the “About” or “About” of the package, we use the following commands:

apt-cache show package_name (showing his local cache) or the apt show package

sudo pacman -Si package_name = shows information for an uninstalled package.

sudo pacman -Qi package_name = shows information about the package already installed.

sudo pacman package_name = install only dependencies.

When removing a package, we have two options in Arch Linux / Manjaro, one removing only the package or removing the package and its dependencies, the commands are:

sudo pacman -R package_name = remove a package.

sudo pacman -Rs package_name = remove the package along with dependencies not used by other packages.

If you need more parameters and help, access directly from the terminal by typing pacman -h or pacman –help or by accessing the help links on the Arch Linux Wiki, some of which are in English, but nothing that Google Translate does not help ?, others are in Portuguese.

Arch Linux Wiki links: Link 1, Link 2 and Link with all detailed commands.

I hope this basic guide has helped you. ??

Also check out the full tutorial on Arch Linux that has there on the channel, check below

Or if you prefer to use pamac, we show it in the video about Manjaro

This article does not end here, keep exchanging an idea there in our forum.

I wait for you next time, a big hug.


Have you seen any errors or would you like to add any suggestions to this article? Collaborate, click here.