How to Install Programs via Layman on Gentoo

  1 min read  

First you need to install, logically, the layman

emerge -a layman

Then create a configuration file make.conf for layman

touch /var/lib/layman/make.conf

After that you need to include the configuration file that we created for layman in Portage’s make.conf

echo 'source /var/lib/layman/make.conf' >> /etc/portage/make.conf

Synchronize data

layman -S
emerge --sync

Now add a layman repository, click here to see the full list of repositories available.

For this example I’m going to add the raiagent repository

layman -a raiagent # [y/n] y

After doing all the above procedure, suppose I want to install the Powerline that is in the raiagent repository that I added, so, just I install it

emerge -a app-misc/powerline

Sometimes when you try to install some application, Portage asks that after the first attempt, you run the command etc-update, if this happens to you, run the command below and again run the command to install the desired application…

etc-update --automode -5
emerge -a app-misc/powerline

Any questions, use the comments!