Although I often use the console, I confess that I am not very good at memorizing commands, I generally use a "cheat sheet" where I have various commands that I usually need and that in some cases I do not remember. This is perhaps not the best way to have the commands we need at hand, but it is the one that I use and it works for me.
Now that I am enjoying Manjaro KDE (What is an Arch Linux-based distro), it seemed interesting to me to make a compilation of the commands that are most used in Arch Linux and others that are not used much but have interesting utilities.
It is worth noting that the best way to know the commands for Arch Linux is the Wiki of the distro itself, where there is very complete and adequate information for each command. This compilation is nothing more than a quick reference guide, to delve into each command (its use, utility, syntax, among others) we strongly recommend going to Arch Linux Wiki.
Table of Contents
Pacman and Yaourt: the 2 essential commands for Arch Linux
Pacman y Yogurt make Arch Linux one of the best distros that exist today, through them we can enjoy thousands of packages and programs that are available to be installed with these commands. In the same way, both tools work in a very similar way so learning how to use it is extremely simple.
Pacman is Arch Linux's default package manager, meanwhile Yogurt is a wrapper that gives us access to the AUR community repository, where we can get one of the largest compiled packages catalog that exists today.
The basic Pacman and Yaourt commands that we must know are the following, we will group it by what they do, you can see the similarity of the commands, in the same way, highlight that pacman is executed with sudo and for yaourt it is not necessary.
sudo pacman -Syu // Update the system yaourt -Syu // Update the system yaourt -Syua // Update the system in addition to the AUR packages sudo pacman -Sy // Synchronize the packages from the database yaourt -Sy // Synchronize the packages from the database sudo pacman -Syy // Force synchronization of the packages from the database yaourt -Syy // Force the synchronization of the packages from the database sudo pacman -Ss package // Allows you to search for a package in the repositories yaourt -Ss package // Allows you to search for a package in the repositories sudo pacman -Yes package // Get information from a package that is in the repositories yaourt -Yes package // Get information from a package that is in the repositories sudo pacman -Qi package // Show the information of an installed package yaourt -Qi package // Show the information of an installed package sudo pacman -S package // Install and / or update a package yaourt -S package // Install and / or update a package sudo pacman -R package // Remove a package yaourt -R package // Remove a package sudo pacman -U / path / to / the / package // Install a local package yaourt -U / path / to / the / package // Install a local package sudo pacman -Scc // Clear the package cache yaourt -Scc // Clear the package cache sudo pacman -Rc package // Remove a package and its dependencies yaourt -Rc package // Remove a package and its dependencies sudo pacman -Rnsc package // Remove a package, its dependencies and settings yaourt -Rnsc package // Remove a package, its dependencies and settings sudo pacman -Qdt // Show orphaned packages yaourt -Qdt // Show orphaned packages
Basic Commands Used in Arch Linux
Already in the past it was published here in FromLinux an image with which we could build a cube, which allowed us to have the Arch Linux commands at hand, this image ideally encompasses the rest of the commands that we wanted to share with you.
You can supplement these commands with the guidance that was made in the past, with the More than 400 commands for GNU / Linux that you should know 😀