Gentoo Portage Overlays

Hi there, everybody, how is it going?

From Gentoo User’s Guide:

“Overlays” are package trees for Portage. They contain additional ebuilds for Gentoo. They are maintained by Gentoo developers and projects but distributed separately from the main Portage tree.

But how to configure it easily? Some may use layman tool for that, but you can do manually without breaking your head :). So, steps are below:

Create an overlay directory:

# mkdir /usr/local/portage

Edit the file /etc/make.conf or /etc/portage/make.conf and add the following line anywhere in the file. Use a text editor that you prefer:

PORTDIR_OVERLAY="/usr/local/portage"

Suppose, you wanna install thunar-dropbox package on your system. Basically, you have to download its ebuild by “googling” for it. And after, move such ebuild to the /usr/local/portage directory. However, you probably have to create subdirs for the thunar-dropbox package.

(A portage subdir need to respect the hierarchy like this: type/package_name/)

# mkdir -p /usr/local/portage/xfce-extra/thunar-dropbox
# mv thunar-dropbox-0.2.0.ebuild /usr/local/portage/xfce-extra/thunar-dropbox

Update:

# emerge --sync

Install:

# emerge -av thunar-dropbox --quiet

That’s all,

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s