Eselect/Repository

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Eselect/Repository and the translation is 12% complete.
Outdated translations are marked like this.

eselect-repository es un eselect modulo para gestionar /etc/portage/repos.conf ingresos a repositorios de terceros (también conocidos como recubrimientos).

See also
For further options see man repository.eselect.

Esta herramienta reemplaza a app-portage/layman para enumerar, configurar, y manejar la sincronización de repositorios alternos a excepción de los sistemas de control de versiones que el controlador de paquetes no sincronice de manera nativa (ej. mercurial, bazaar, y g-sorcery en Portage).

eselect-repository is written and maintained by Gentoo's Michał Górny (mgorny) .

Emerge

root #emerge --ask app-eselect/eselect-repository

Configuración

Setup inicial

El directorio REPOS_CONF, como está configurado en los archivos debajo, debe existir antes que el modulo funcione propiamente.

Para asegurarse que existan corra (usando el defaults como ejemplo):

root #mkdir -p /etc/portage/repos.conf

Ficheros

Paths and options can be changed in /etc/eselect/repository.conf. This file has comments and is self-explanatory.

Utilización

Consejo
Repositories can be synced after being configured, using Portage's emaint:
root #emaint sync -r foo

repos.gentoo.org

Gentoo permite a usuarios y desarrolladores registrar sus repositorios para uso público. eselect repository bajará y leerá la lista de conocidos.

Enumerar repositorios registrados

eselect repository can print all repositories listed on repos.gentoo.org:

user $eselect repository list
Available repositories:
  [1]   foo
  [2]   bar
  [3]   baz
  [4]   cross #
  [5]   good *
  [6]   my_overlay @
  • 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.


Use the -i option to show currently configured repositories only:

user $eselect repository list -i

Agregar repositorios registrados

Sintaxis: enable (<name>|<index>)...

root #eselect repository enable foo bar baz

Agregar repositorios no registrados

Sintaxis: add <name> <sync-type> <sync-uri>

root #eselect repository add test git https://github.com/test/test.git
Nota
When an ebuild repository is added for the first time, it must be synchronized before use.
Advertencia
While the Gentoo ebuild repository is either written or reviewed by Gentoo developers, and the GURU repository has some developer oversight, that is not always the case for other ebuild repositories. It is possible that some ebuilds repositories might contain vulnerable, badly broken or, theoretically, even malicious software.

Deshabilitar repositorios sin quitar contenido

Sintaxis: disable [-f] (<name>|<index>)...

root #eselect repository disable foo bar

La opción -f es necesaria para repositorios no registrados y aquellos sin atributos de sincronización.

Deshabilitar repositorios junto con el contenido

Sintaxis: remove [-f] (<name>|<index>)...

root #eselect repository remove bar baz

La opción -f es necesaria para repositorios no registrados y aquellos sin atributos de sincronización.

Create a new ebuild repository

The create subcommand will create an ebuild repository skeleton, and configure it with Portage:

Syntax: create <name> [<path>]

root #eselect repository create <ebuild_repository_name>
Adding <ebuild_repository_name> to /etc/portage/repos.conf ...
Repository <ebuild_repository_name> created and added

Vea también