How to add color to the Pacman Package Manager

Pacman is the workhorse of Arch Linux. A very powerful, fast package manager and once you try it, it's hard not to get fond of it.

The problem is that by default, when we use Pacman It is very difficult for us to read the output of the actions we carry out. For example, let's say I want to search for all packages related to libreoffice. I open a terminal and put:

$ sudo pacman -Ss libreoffice

Which returns something like this:


As you can see, very difficult to understand what the package is or its description. Formerly we installed a package called pacman-color, but this is no longer necessary.

All we have to do is edit the file /etc/pacman.conf and look for the line that says:


And of course, uncomment it (removing the #). We save and that's it, it's that simple. We can do that Pacman looks like this:


I honestly think that this option should be activated by default, but hey ..

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

17 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.   davidlg said

    and to make pacman more comecocos add in the same file:

    1.    davidlg said

      add below where it says:
      HoldPkg = pacman glibc

  2.   snock said

    Very good 😛

  3.   Gregorio Espadas said

    It is not enabled by default because the option is relatively new, before you had to use a separate package called pacman-color (or something like that).

    1.    RAW-Basic said

      Exactly, it says it in the same post ee ..

  4.   itachi said

    I use Yaourt for everything, it comes in color by default.

  5.   Algabe said

    Very good, thank you very much and greetings! 0 /

  6.   sanhuesoft said

    Thanks, I've activated it and it's going much better. Cheers!

  7.   Wayne7 said

    And… Functional in Chakra too 😉 We must add the Color line, which is missing.

    1.    truko22 said

      SI and the ccr also has color 😀

  8.   Leo said

    Better with an alias. In ~ / .bashrc I have the following (among others):

    alias b = »pacman –color auto -Ss»
    alias i = »sudo pacman –color auto -S»
    alias r = »sudo pacman –color auto -Runsc»
    alias u = »sudo pacman –color auto -Sy»
    alias ac = »sudo pacman –color auto -Su»
    alias a = »sudo pacman –color auto -Ss | grep –color = auto installed: »

    That makes with "b libreoffice" search for all the packages that have their name (and with colors). And since in / etc / sudoers I have pacman with NOPASS (I think it is not written like that but you will understand me 🙂) it does not ask me for a password to install or uninstall anything 😀
    The alias r makes it uninstall the package + unused dependencies + force if any package still depends on it, since it also uninstalls it along with its dependencies.

  9.   cat said

    Arriving at my house I try it 😀

    1.    cat said

      Excellent 😀

  10.   jamin-samuel said

    Wow !! I did not know that Elva had returned again to the paths of Arch xD

    1.    cookie said

      . . .
      banned at 5. . Four . . 4 . . .

  11.   jmsanzd said

    Hi. Is there something similar for Thunar?

  12.   Javier said

    Very good! The truth is, yes, it should already be activated by default. With a little color everything looks more orderly.