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:

pacman_nocolor

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:

#Color

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:

pacman_color

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


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:
    ILoveCandy

    1.    davidlg said

      add below where it says:
      HoldPkg = pacman glibc

  2.   snack said

    Very good 😛

  3.   Gregory Swords 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.   Algave 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.
    Regards!

    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

      Eleven
      . . .
      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.

    Slds!