How and when to use Yaourt on Arch Linux and derivatives?

yaourt commands

On a previous occasion we shared with you how to install Yaourt on our system by adding its repository to our pacman.conf file. The use of Yaourt its use is relatively simple and especially if already you are familiar with Pacman you will realize that it is almost the same.

Yogurt (Yet AnOther User Repository Tool; 'Yogurt' in French) is a community contributed wrapper for Pacman, which adds comprehensive access to the AUR repository, which allows automation of package compilation and installation of PKGBUILDs Chosen from thousands on the AUR, in addition to the thousands of available Arch Linux binary packages.

Yogurt uses a syntax exactly the same as Pacman, which saves the user from having to relearn a new system maintenance method, but also adds new options. Yaourt extends the power and simplicity of Pacman, adding more useful features and it provides nice, colored output, interactive search modes, and much more.

A of the recommendations that I give to know when to occupy Pacman and when it is necessary Yaourt is that in the first place always check if the application we want to install is inside Pacman, this can be checked in the following link.

Si not so then we consult the AUR repositories And if the application is in this case we install with Yaourt, the other point is that also if you want to install a special version or the most recent one, they are almost always available faster in AUR.

On the other hand, if you want to modify any aspect of the installation, Yaourt gives you that possibility.

Basic Yaourt Commands

Yogurt

Basically the commands described here can be divided into 3 sections. The first are installation commands, the second section is the handling of packages and finally their removal.

For, install an application we execute:

yaourt -S "paquete"

With this command we order that the repositories are synchronized first, that in case of any change this is detected before starting the package installation.

yaourt -Sy "paquete"

Si you downloaded some pkgbuild or a package from the network you can support yourself with yaourt for compilation, the command for it is:

yaourt -U "/ruta_del_paquete"

If you are having conflicts with the installation, one of the most common problems may be the cache that they keep, to clean it we execute:

yaourt -Scc “paquete”

This command not only installs the application, but in addition to synchronizing the repositories, it examines all the packages and if there are new versions, it installs them:

yaourt -Sya “paquete”

As I mentioned previously, you can rely on the AUR packages page to search for a package, but we can also do it from the terminal. Although here I recommend being as specific as possible.

yaourt -Ss “paquete”

With this other command we will display more detailed information about the package:

yaourt -Si “paquete”

For, filter faster, You can search by types of groupseg players, browsers, editors etc. For this we execute:

yaourt -Sg “grupo”

Within package searches, we can also see those that are already installed, to know that we just execute:

yaourt -Qs “paquete”

Like the previous show info commands, it does the same only with packages already installed.

yaourt -Qi “paquete”

When you remove packages from your system, there are usually orphaned packages and these can be detected with this command:

yaourt -Qdt

In this part of removing packages, it is extremely necessary to be careful with the parameters you use, since many times the installed applications or packages have dependencies that are used by others.

Otherwise if you uninstall a package together with dependencies, you run the risk of corrupting the integrity of others or worse still your system.

When we want uninstall any package or application, but without touching its dependencies we must execute this command.

yaourt -R “paquete”

Furthermore, if we are going to remove a package and its dependencies that are not used on the other and that is generally the recommended command, we execute the following:

yaourt -Rs “paquete”

With this command we do the same as the previous one, only we add the part delete the cache

yaourt -Rcs “paquete”

What this command will do is remove a package that is required by someone else, but without touching the dependencies.

yaourt -Rdd “paquete”

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

2 comments, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  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.   Claudio D. Arrieta said

    Stop recommending the yaourt for the love of humanity. There are better, safer and more reliable alternatives like trizen, aurman, aurutils, pikaur or yay as this graphic from the Arch wiki shows: https://wiki.archlinux.org/index.php/AUR_helpers#Comparison_table

    yaourt also does not receive an update that really affects the functionality of the program since May 2017 (https://github.com/archlinuxfr/yaourt/commit/5b195ad3f9452dc3beec4f0b9bc09136ec8d92a5) ._.

  2.   Dario Guillen said

    According to the wiki they do not recommend using helpers, and that it is preferable to do it manually, but if they show a list of those that you can use and of which there are yaourt it is the worst
    https://wiki.archlinux.org/index.php/AUR_helpers