/etc/portage/repos.conf

can be a file or directory of files that specifies site-specific repository configuration information.

Format

 * Comments begin with  (no inline comments)
 * Configuration of each repository is specified in a section starting with
 * Attributes are specified in  format

Examples
Using Git for Official (main) repository syncing:

Example of an repos.conf overlay:

For an example of repos.conf as a monolithic file, run this command and search for the repos.conf section:

Listing repositories
To see a compact list of repositories, formatted for easy reading:

To see a detailed list of repositories, without any formatting:

Managing repositories from make.conf
The  environment variable has the same format as. Like the old  variable, it can be used to manage repositories from your  file.

First, create a basic file. This assumes you have repositories installed in.

Query the environment variable and redirect output to :

Delete the unwanted file:

The final step is to edit, setting the ,   and   variables as required. For local repositories that don't require syncing, set the sync- variables to empty, rather than commenting them out. For remote repositories that don't receive updates, set.

Adding squashfs support as a plug-in
Squashfs support was removed in portage-2.2.20. However, you can use the plug-in sync system to add squashfs support back in, as a plug-in:

External resources

 * news-items 2015-02-04 portage-sync-changes