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. (Actually, overlays.gentoo.org doesnt even exist right now... but git.overlays.gentoo.org does.)

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 (#gentoo-php), and the Webapps project (#gentoo-web). 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 #gentoo-bugs 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 seethis post for instructions on how to host your overlay on Gentoo infrastructure.

Acknowledgements
We would like to thank the following authors and editors for their contributions to this guide:
 * stuart
 * jokey
 * nightmorph
 * dastergon