Commands for Arch Linux that all your users should know

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.

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.

Source: elblogdepicodev

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 😀

 


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

11 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   eliotime3000 said

    Very good. It works for me precisely for the Arch that I have on my netbook and the partition that I have with Parabola GNU / Linux-libre on my desktop PC.

  2.   ice said

    all that info is on the archlinux wikipedia. : /

    1.    lizard said

      I quote verbatim what I wrote in the article:

      «It is worth noting that the best way to know the commands for Arch Linux is the distro Wiki itself, where there is very complete and adequate information for each command. This compilation is nothing more than a quick reference guide, to deepen each command (its use, utility, syntax, among others) we strongly recommend going to the Arch Linux Wiki. »

    2.    Tile said

      Ya c xd
      They should do more ArchUsers oriented posts anyway.
      More in my case after having lost practice: /

      1.    ice said

        on my youtube channel I have several videos and on my blog too https://archlinuxlatinoamerica.wordpress.com 😉

  3.   Miguel Mayol i Tur said

    You forgot the best one to update:
    yaourt -Your -noconfirm

    We remember Suya in Spanish more easily than Syua and the order of the parameters does not alter, in this case, the result

    Regarding the noconfirm, for what is updated from the AUR it is a roll the confirmations that it asks for, especially if you are probón, and thus you save them.

  4.   Tile said

    Lagarto, I've been having an extremely slow Internet in Arch for months but in the case of Mageia it works perfectly, I haven't gotten into the logs and taking advantage of the fact that I have a bridge I would like to see how I could fix it.
    Has something like this happened to you?
    Sorry if this breaks any rules.

  5.   Courage said

    put the cube image in high quality

  6.   Lucia said

    Hello, excuse my profound ignorance, but I have an important question: I have been using Arch for 3 days, I have a dual boot with another operating system. I love the distro, but I run into a problem: I can't install yaourt (first of all I already have the base-devel installed), I modified the pacman.conf using nano and added the repo
    [archlinuxfr]
    SigLevel = Never
    Server = http://repo.archlinux.fr/$arch

    However I get the error: error: could not get the file "archlinuxfr.db" from repo.archlinux.fr: Operation too slow. Less than 1 bytes / sec transferred the last 10 seconds
    error: failed to update archlinuxfr (download library error)

    Tried with leaving the SigLevel = Optional TrustAll, just for testing. The internet speed is adequate, the other repos do not give me problems, I can browse or download at the speed that I have contracted.

    My question is if this repo still exists or if I should download yaourt directly from AUR and compile it.

    Greetings and sorry if the question is very idiotic, but I reiterate, I have only been with Arch for 3 days.

    1.    Steve said

      After adding the repository and saving, install yaourt:

      $ sudo pacman -S yaourt

  7.   Wibort said

    Kind regards, I would like your help with a question, in Arch, or your child Antergos which is the one I am using, is it necessary or possible to update the proprietary drivers of the video card as it is done in distros like Ubuntu? If possible, could you give me a hand explaining how to do it?