Project:Overlays/Old User Guide

This guide helps users understand how to use the Gentoo Overlays service.

Audience
This document has been written for all users of Gentoo. If you are a Gentoo developer or Gentoo staff member, and you want to be able to manage your own overlay, please see the Developers' Guide.

What are overlays?
"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.

Why use overlays?
People create overlays for all sorts of reasons. Here are a few of the main ones:


 * If you modify an ebuild in, your change will be lost the next time you . But, if you put your modified ebuild into an overlay, your change is safe from.
 * Because overlays are not the main Gentoo Portage package tree, they're a great place to develop and test an ebuild without fear of breaking the main Gentoo Portage package tree.
 * Not every ebuild belongs in the Gentoo Portage package tree. An overlay is a great place to store an ebuild until it is ready to go into the Gentoo Portage package tree.

What is the Gentoo overlays project?
Gentoo Overlays provide social workspaces to allow Gentoo projects, developers and users to collaborate together on tomorrow's Gentoo packages. We do this by hosting overlays for Gentoo projects, developers, and users.

Are all official overlays hosted on overlays.gentoo.org?
No. Gentoo developers are free to put their overlay wherever suits them best; they don't have to use overlays.gentoo.org if they don't want to.

Getting started with overlays
Use to easily install and update overlays over time.

Installing layman
Before you install layman it is worth mentioning that you probably want  for it. After adjusting use flags, to install you run:

Listing the available overlays
To see the list of overlays available, run:

Installing an overlay
To install an overlay on your computer, run:

For example, to install the PHP overlay, run:

Installing packages from an overlay
After installing an overlay, you can install packages from it by running:

Portage automatically searches your Gentoo main tree (in ) and all of the overlays that you've installed, and picks the latest version of the package that it can find.

If Portage isn't picking up the package from the overlay, that's normally because the package is marked ~arch, where "arch" is the architecture of your computer. You'll need to keyword the package as explained in the Gentoo Handbook.

Updating an overlay
To keep your installed overlays up to date, run:

Introduction
All Gentoo developers were users of Gentoo before they became developers and still are users. Our users aren't just the reason Gentoo exists today; they're our future volunteers too.

If you start contributing to a project, we'll give you write access to the project's overlay, and we'll provide mentors to help you contribute. Eventually, if we like what you do and the way you do it, we'll invite you to go the whole hog and become a full Gentoo developer.

How to get started
If you want to contribute to an overlay, the best approach is to build a good working relationship with the Gentoo developers who are responsible for the overlay. You can find out who is responsible for each overlay by going to overlays.gentoo.org's homepage, and clicking on the link for the overlay in question.

Different developers prefer to be contacted in different ways. Some hang out on IRC, and may have their own channels for their projects. Examples of these include the PHP project, and the Webapps project. Others prefer to be contacted by email only. The only way you'll find out is to try and make contact, and take it from there. Commonly people in on freenode IRC know where to find the people in question.

Working with subversion
Subversion is one version control software we use to manage the contents of our overlays. If you have never used Subversion before, the Subversion book is an excellent way to learn Subversion. You can buy it in dead-tree format if you prefer or read it online for free.

Working with git
Git is another version control software we use to manage the contents of our overlays. To get in touch with it, see the tutorial provided on the homepage.

Further information
The Gentoo project (or developer) you're working with should be able to provide you with any further help and assistance that you need.

Frequently asked questions

 * Q: Do you host overlays for users?
 * A: Yes, we do. Please see this post for instructions on how to host your overlay on Gentoo infrastructure.