Eselect/Repository

is Article description::an [[eselect module for manipulating entries]] or setting up a custom ebuild repository with Portage (or with alternative package managers). Refer also to the ebuild repositories article.

For further options see.

is written and maintained by Gentoo's.

Initial setup
The file or directory as configured by the REPOS_CONF variable in, must exist before the module will function properly.

Gentoo Handbook prefers to have it as a directory:

Usage
Gentoo allows users and developers to register their repositories for public consumption. will fetch and read the known list.

Listing registered repositories

 * Installed, enabled repositories are suffixed with a * character.
 * Repositories suffixed with #, need their sync information updated (via disable/enable) or were customized by the user.
 * Repositories suffixed with @ are not listed by name in the official, published list.
 * Adding the  optional parameter will only list installed repositories

Add registered repositories
Syntax: enable ( | )...

Add unregistered repositories
Syntax: add  

Disable repositories without removing contents
Syntax: disable [-f] ( | )...

The  option is required for unregistered repositories and those without sync attributes

Disable repositories and remove contents
Syntax: remove [-f] ( | )...

The  option is required for unregistered repositories and those without sync attributes

Create a new custom ebuild repository
The create subcommand will create a custom ebuild repository skeleton:

Syntax: create [ ]

Sync added repository
Repositories can be synced using Portage's emaint: