contador web Saltar al contenido

Basic Commands for Newcomers to Arch Linux and Manjaro

This article is also for anyone coming from the Debian / Ubuntu database and looking for apt-equivalent commands. Remembering to always check if the commands are spelled correctly, so there are no failures.

Let's do a table schema, where above is the base command (s) Debian / Ubuntu and below is the commands for Arch Linux and Manjaro, close? So now l.

Let's start with the basics, which update the system packages.

sudo apt-get update / sudo apt update

pacman -Sy = synchronize the repositories.

pacman -Su = search for update.

pacman -Syu = synchronize repositories / update search.

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 = total sync / update search.

sudo pacman -Syy = synchronize 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 pack 1 pack 2 / sudo apt-get install -y package / yet sudo apt install package

sudo pacman -S package_name = install package

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

Once you find the desired package and installed, if you want to see About or About the package, we use the following commands:

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

sudo pacman -Si package_name = show information of an uninstalled package.

sudo pacman -Qi package_name = show package information already installed.

sudo pacman -If package_name = install dependencies only.

Already removing some 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 package along with dependencies not used by other packages.

If you need more parameters and help, go directly to the terminal by typing pacman -h or pacman –help or by accessing the Arch Linux Wiki help links, which some are in English, but nothing that Google Translate doesn't help, others are in Portuguese.

I hope this basic guide has helped you.

Also check out the full Arch Linux tutorial 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.

Hope to see you next, a big hug.

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