eselect/repository/es

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Eselect/Repository and the translation is 76% complete.

Warning: Display title "eselect/repository/es" overrides earlier display title "Eselect/Repository".

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

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).

Instalación

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

ARCHIVO /etc/eselect/repository.conf
# configuration for eselect-repo
# (sourced by bash, so keep the values bash-compatible)
 
# The following variables can be used below to reference paths
# configured at build time:
#   CACHEDIR -- system cache directory (e.g. /var/cache)
#   SYSCONFDIR -- system configuration directory (e.g. /etc)
#   SHAREDSTATEDIR -- system shared state directory (e.g. /var)
 
# Location of the repository configuration file or directory. If it is
# a directory, Portage rules for subfiles are used.
REPOS_CONF=${SYSCONFDIR}/portage/repos.conf
 
# File to use for newly added repositories when REPOS_CONF is
# a directory.
REPOS_CONF_SUBFILE=${REPOS_CONF}/eselect-repo.conf
 
# Top directory to keep newly added repositores in. New repositories
# will be added with subdirectories following repository names.
REPOS_BASE=${SHAREDSTATEDIR}/db/repos
 
# Location of the remote repository list. The default is to use
# the gentoo-mirror list that contains pregenerated metadata cache.
REMOTE_LIST_URI=https://qa-reports.gentoo.org/output/repos/repositories.xml
 
# Alternative: original Gentoo list.
#REMOTE_LIST_URI=https://api.gentoo.org/overlays/repositories.xml
 
# Directory to store repositories.xml cache. The file will always
# be called "repositories.xml" due to technical limitations of wget.
REMOTE_LIST_CACHEDIR=~/.cache/eselect-repo
 
# Interval (in seconds) to check the remote repository list for changes.
# The default is 2 hours.
REMOTE_LIST_REFRESH=$(( 2 * 3600 ))

Utilización

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

root #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.
  • Adding the -i optional parameter will only list installed repositories

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

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.

Vea también

  • Eselect — a tool for administration and configuration on Gentoo systems.