A ver quien se encarga de apt.conf
Hola:
Sintiendolo mucho, tengo que dejar de traducir apt.conf, ya
llevaba mucho tiempo con él, pero me es imposible dedicarle el tiempo
que requiere, es bastante complicado. Os envio una parte de la
traducción y unas correcciones de Ruben(gracias).
Saludos
--
Carlos Mestre González, faraox at hotpop dot com - Mensajería: faraox@jabber.org
Pertenezco a GULIC, www.gulic.org, Grupo de usuarios de Linux de Canarias
También pásate por http://groups.yahoo.com/group/lpwireless/ y hablamos sobre Wireless en La Palma!
--- oldapt.conf.5.sgml 2003-04-01 10:00:02.000000000 +0200
+++ modapt.conf.5.sgml 2003-04-01 09:58:35.000000000 +0200
@@ -64,17 +64,17 @@
<filename>&docdir;/examples/apt.conf</> &configureindex;es una buena guía
para entender como debería parecer.
<para>
- Dos valores especiales están permitidos, <literal/#include/ y <literal/#clear/.
- <literal/#include/ incluirá el fichero dado, sin el final nombre del fichero en la
- barra, entonces el directorio entero es incluído.
- <literal/#clear/ es usado para suprimir la lista de nombre.
+ Se permiten dos valores especiales, <literal/#include/ y <literal/#clear/.
+ <literal/#include/ incluirá el fichero dado, a menos que el final del nombre
+ del fichero acabe en una barra, entonces se incluye el directorio entero.
+ <literal/#clear/ es usado para suprimir la lista de nombres.
<para>
Todas las utilidades APT permiten la opción -o como una directriz
arbitraria de configuración que es especificada en la línea de órdenes. La
sintáxis es un nombre de opción completo (<literal/APT::Get::Assume-Yes/
por ejemplo) seguido por signos de igualdad y el nuevo valor de la
- opción. Las listas también pueden ser añadidas incluyendo :: de la lista de
- nombres.
+ opción. Las listas también pueden ser añadidas incluyendo :: al final del
+ nombre de la lista.
</RefSect1>
<RefSect1><Title>El grupo APT</>
@@ -84,57 +84,58 @@
<VariableList>
<VarListEntry><Term>Arquitectura</Term>
<ListItem><Para>
- Arquitectura del sistema; ajuste la arquitectura a usar cuando se liste
- los ficheros obtenidos y los análisis sintáticos de los paquetes. El valor
- por defecto es la arquitectura para la que ha sido compilado apt.
+ Arquitectura del sistema; ajusta la arquitectura a usar cuando se obtengan
+ los ficheros y se analicen las listas de paquetes. El valor por defecto es
+ la arquitectura para la que ha sido compilado apt.
</VarListEntry>
<VarListEntry><Term>Ignorar-retenidos</Term>
<ListItem><Para>
- Ignorar paquetes retenidos: Esta opción glogal causa la solución del
- problema de ignorar paquetes retenidos en...............
+ Ignorar paquetes retenidos: Esta opción glogal causa que el solucionador de
+ problemas ignorare paquetes retenidos cuando tome decisiones.
</VarListEntry>
<VarListEntry><Term>Clean-Installed</Term>
<ListItem><Para>
- Por defecto activo. Cuando se activa la función de autolimpiza, esta
- removerá cualquier paquete que puede ...... Si se desactiva, entonces los
- paquetes que están localmente instalados son excluido de la limpieza -
- nótese que APT provee indirectos medios para reinstalarlo........
+ Activo por defecto. Cuando se activa la función de autolimpieza, ésta
+ eliminará cualquier paquete de la caché que ya no pueda descargarse. Si se
+ desactiva, entonces los paquetes que están localmente instalados son
+ excluido de la limpieza - nótese que APT no provee ningún medios directo
+ para reinstalarlos.
</VarListEntry>
- <VarListEntry><Term>Configuración inmediata</Term>
+ <VarListEntry><Term>Immediate-Configure</Term>
<ListItem><Para>
- Deshabilitar la configuración inmediata: Esta peligrosa opción
+ Deshabilita la configuración inmediata: Esta peligrosa opción
deshabilita algunas de las clasificaciones de código para inducir a este
- a hacer pocas llamadas a dpkg. Hacer esto podría ser necesario en algun
- único sistema de usuario extremadamente lento, pero sería muy peligroso y
- podría causar que los archivos de comando de instalación del paquete
- fallaran o peor. Úselo ...........
+ a hacer pocas llamadas a dpkg. Hacer esto podría ser necesario en algún
+ sistema de usuario extremadamente lento, pero sería muy peligroso y
+ podría causar que los scripts de instalación del paquete fallaran o peor.
+ Úselo a su cuenta y riesgo.
</VarListEntry>
<VarListEntry><Term>Force-LoopBreak</Term>
<ListItem><Para>
Nunca habilite esta opción a menos que usted -realmente- conozca lo que
- va a hacer. Esto permite a APT que remuvea temporalmente un paquete
+ está haciendo. Esto permite a APT eliminar temporalmente un paquete
esencial para romper conflictos o bucles conflictos/pre-dependencias
- entre dos paquetes esenciales. EL BUCLU NO DEBERÍA EXISTIR NUNCA COMO TAL
+ entre dos paquetes esenciales. EL BUCLE NO DEBERÍA EXISTIR NUNCA COMO TAL
Y ES UN ERROR GRAVE. Esta opción trabajará si el paquete esencial no es
tar, gzip, libc, dpkg, bash o cualquier cosa que depende de estos
paquetes.
</VarListEntry>
- <VarListEntry><Term>Limite de cache</Term>
+ <VarListEntry><Term>Cache-Limit</Term>
<ListItem><Para>
APT usa una corrención del tamaño de la memoria del mapa de un fichero de
- cache para almacenar la información disponible. Éste fija el tamaño de
- esa cache.
+ caché para almacenar la información disponible. Éste fija el tamaño de
+ esa caché.
</VarListEntry>
<VarListEntry><Term>Build-Essential</Term>
<ListItem><Para>
- Define que paquete(s) son considerados esenciales para la construir de
- dependencias.
+ Define que paquete(s) son considerados dependencias de construcción
+ esenciales.
</VarListEntry>
<VarListEntry><Term>Get</Term>
@@ -151,7 +152,7 @@
<VarListEntry><Term>CDROM</Term>
<ListItem><Para>
- La subsección CDROm controla la herramienta &apt-cdrom;, por favor, mire
+ La subsección CDROM controla la herramienta &apt-cdrom;, por favor, mire
la documentación para más información sobre esta opción.
</VarListEntry>
</VariableList>
@@ -162,16 +163,16 @@
El grupo de opciones <literal/Acquire/ controla la descarga de paquete y el
manipulador de URI.
<VariableList>
- <VarListEntry><Term>Modo de cola</Term>
+ <VarListEntry><Term>Queue-Mode</Term>
<ListItem><Para>
- Queuing mode; <literal/Queue-Mode/ puede ser <literal/host/ o
+ Modo de cola; <literal/Queue-Mode/ puede ser <literal/host/ o
<literal/access/ que determina como paralelizar las conecciones salientes
- de APT. <literal/host/ significa que será abierta una conección
+ de APT. <literal/host/ significa que será abierta una conexión
por puesto de destino, <literal/access/ significa que será abierta una
- conección por cada tipo de URI.
+ conexión por cada tipo de URI.
</VarListEntry>
- <VarListEntry><Term>Retries......</Term>
+ <VarListEntry><Term>Retries</Term>
<ListItem><Para>
Number of retries to perform. If this is non-zero APT will retry failed
files the given number of times.
<!-- -*- mode: sgml; mode: fold -*- -->
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
<!ENTITY % aptent SYSTEM "apt.ent">
%aptent;
]>
<refentry>
&apt-docinfo;
<refmeta>
<refentrytitle>apt.conf</>
<manvolnum>5</>
</refmeta>
<!-- Man page title -->
<refnamediv>
<refname>apt.conf</>
<refpurpose>Archivo de configuración de APT</>
</refnamediv>
<RefSect1><Title>Descripción</>
<para>
<filename/apt.conf/es el fichero principal de configuración del conjunto de
herramientas APT, todas las herramientas hacen uso del fichero de
configuración y un analizador común de sintaxis de la línea de órdenes
para proporcionar un entorno uniforme. Cuando se inicia una utilidad APT,
este leerá la configuración especificada en la variable de entorno
<envar/APT_CONFIG/ (si existe), luego leerá los ficheos en
<literal/Dir::Etc::Parts/, entonces leerá el fichero de configuración
principal especificado por <literal/Dir::Etc::main/, finalmente aplicará
las opciones de la línea de órdenes para reescribir la directrices de la
configuración, posiblemente cargando incluso más ficheros de configuración.
<para>
El fichero de configuración está organizado en forma de árbol con las
opciones organizadas en grupos funcionales. Las opciones especificadas son
dadas con dobles dos puntos, por ejemplo <literal/APT::Get::Assume-Yes/ es
un opción de la función GET del conjunto de herramientas APT.
Las opciones no son heredadas de sus grupos de padres.
<para>
Sintácticamente, el lenguaje de configuración es modelado después de que
las utilidades ISC, como para el uso de bind y dhcp. Cada línea es de la
forma <literallayout>APT::Get::Assume-Yes "true";</literallayout> Los
espacios entre los dos puntos son requeridos, y las comillas son
opcionales. Un nuevo ámbito puede ser abierto con las llaves, como:
informalexample><programlisting>
APT {
Get {
Assume-Yes "true";
Fix-Broken "true";
};
};
</programlisting></informalexample>
con nuevas líneas en cada lugar para hacerlo más legíble. Las lista pueden
ser creadas abriendo un nuevo ámbito e incluyendo una única palabra acotada
entre comillas seguido de un punto y coma. Pueden ser incluidas multiples
entradas, cada una separada por un punto y coma.
<informalexample><programlisting>
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
</programlisting></informalexample>
<para>
En general, un ejemplo del fichero de configuración
<filename>&docdir;/examples/apt.conf</> &configureindex;es una buena guía
para entender como debería parecer.
<para>
Dos valores especiales están permitidos, <literal/#include/ y <literal/#clear/.
<literal/#include/ incluirá el fichero dado, sin el final nombre del fichero en la
barra, entonces el directorio entero es incluído.
<literal/#clear/ es usado para suprimir la lista de nombre.
<para>
Todas las utilidades APT permiten la opción -o como una directriz
arbitraria de configuración que es especificada en la línea de órdenes. La
sintáxis es un nombre de opción completo (<literal/APT::Get::Assume-Yes/
por ejemplo) seguido por signos de igualdad y el nuevo valor de la
opción. Las listas también pueden ser añadidas incluyendo :: de la lista de
nombres.
</RefSect1>
<RefSect1><Title>El grupo APT</>
<para>
Este grupo de opciones controlan la conducta general de APT así como el
mantenimiento de las opciones para todas las utilidades.
<VariableList>
<VarListEntry><Term>Arquitectura</Term>
<ListItem><Para>
Arquitectura del sistema; ajuste la arquitectura a usar cuando se liste
los ficheros obtenidos y los análisis sintáticos de los paquetes. El valor
por defecto es la arquitectura para la que ha sido compilado apt.
</VarListEntry>
<VarListEntry><Term>Ignorar-retenidos</Term>
<ListItem><Para>
Ignorar paquetes retenidos: Esta opción glogal causa la solución del
problema de ignorar paquetes retenidos en...............
</VarListEntry>
<VarListEntry><Term>Clean-Installed</Term>
<ListItem><Para>
Por defecto activo. Cuando se activa la función de autolimpiza, esta
removerá cualquier paquete que puede ...... Si se desactiva, entonces los
paquetes que están localmente instalados son excluido de la limpieza -
nótese que APT provee indirectos medios para reinstalarlo........
</VarListEntry>
<VarListEntry><Term>Configuración inmediata</Term>
<ListItem><Para>
Deshabilitar la configuración inmediata: Esta peligrosa opción
deshabilita algunas de las clasificaciones de código para inducir a este
a hacer pocas llamadas a dpkg. Hacer esto podría ser necesario en algun
único sistema de usuario extremadamente lento, pero sería muy peligroso y
podría causar que los archivos de comando de instalación del paquete
fallaran o peor. Úselo ...........
</VarListEntry>
<VarListEntry><Term>Force-LoopBreak</Term>
<ListItem><Para>
Nunca habilite esta opción a menos que usted -realmente- conozca lo que
va a hacer. Esto permite a APT que remuvea temporalmente un paquete
esencial para romper conflictos o bucles conflictos/pre-dependencias
entre dos paquetes esenciales. EL BUCLU NO DEBERÍA EXISTIR NUNCA COMO TAL
Y ES UN ERROR GRAVE. Esta opción trabajará si el paquete esencial no es
tar, gzip, libc, dpkg, bash o cualquier cosa que depende de estos
paquetes.
</VarListEntry>
<VarListEntry><Term>Limite de cache</Term>
<ListItem><Para>
APT usa una corrención del tamaño de la memoria del mapa de un fichero de
cache para almacenar la información disponible. Éste fija el tamaño de
esa cache.
</VarListEntry>
<VarListEntry><Term>Build-Essential</Term>
<ListItem><Para>
Define que paquete(s) son considerados esenciales para la construir de
dependencias.
</VarListEntry>
<VarListEntry><Term>Get</Term>
<ListItem><Para>
La subsección Get controla la herramienta &apt-get;, por favor, mire su
documentación para más información sobre esta opción.
</VarListEntry>
<VarListEntry><Term>Cache</Term>
<ListItem><Para>
La subsección Cache controla la herramienta &apt-cache;, por favor, mire
su documentación para más información sobre esta opción.
</VarListEntry>
<VarListEntry><Term>CDROM</Term>
<ListItem><Para>
La subsección CDROm controla la herramienta &apt-cdrom;, por favor, mire
la documentación para más información sobre esta opción.
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1><Title>El grupo Acquire</>
<para>
El grupo de opciones <literal/Acquire/ controla la descarga de paquete y el
manipulador de URI.
<VariableList>
<VarListEntry><Term>Modo de cola</Term>
<ListItem><Para>
Queuing mode; <literal/Queue-Mode/ puede ser <literal/host/ o
<literal/access/ que determina como paralelizar las conecciones salientes
de APT. <literal/host/ significa que será abierta una conección
por puesto de destino, <literal/access/ significa que será abierta una
conección por cada tipo de URI.
</VarListEntry>
<VarListEntry><Term>Retries......</Term>
<ListItem><Para>
Number of retries to perform. If this is non-zero APT will retry failed
files the given number of times.
</VarListEntry>
<VarListEntry><Term>Source-Symlinks</Term>
<ListItem><Para>
Use symlinks for source archives. If set to true then source archives will
be symlinked when possible instead of copying. True is the default
</VarListEntry>
<VarListEntry><Term>http</Term>
<ListItem><Para>
HTTP URIs; http::Proxy is the default http proxy to use. It is in the
standard form of <literal>http://[[user][:pass]@]host[:port]/</>. Per
host proxies can also be specified by using the form
<literal/http::Proxy::<host>/ with the special keyword <literal/DIRECT/
meaning to use no proxies. The <envar/http_proxy/ environment variable
will override all settings.
<para>
Three settings are provided for cache control with HTTP/1.1 complient
proxy caches. <literal/No-Cache/ tells the proxy to not use its cached
response under any circumstances, <literal/Max-Age/ is sent only for
index files and tells the cache to refresh its object if it is older than
the given number of seconds. Debian updates its index files daily so the
default is 1 day. <literal/No-Store/ specifies that the cache should never
store this request, it is only set for archive files. This may be useful
to prevent polluting a proxy cache with very large .deb files. Note:
Squid 2.0.2 does not support any of these options.
<para>
The option <literal/timeout/ sets the timeout timer used by the method,
this applies to all things including connection timeout and data timeout.
<para>
One setting is provided to control the pipeline depth in cases where the
remote server is not RFC conforming or buggy (such as Squid 2.0.2)
<literal/Acquire::http::Pipeline-Depth/ can be a value from 0 to 5
indicating how many outstanding requests APT should send. A value of
zero MUST be specified if the remote host does not properly linger
on TCP connections - otherwise data corruption will occur. Hosts which
require this are in violation of RFC 2068.
</VarListEntry>
<VarListEntry><Term>ftp</Term>
<ListItem><Para>
FTP URIs; ftp::Proxy is the default proxy server to use. It is in the
standard form of <literal>ftp://[[user][:pass]@]host[:port]/</> and is
overriden by the <envar/ftp_proxy/ environment variable. To use a ftp
proxy you will have to set the <literal/ftp::ProxyLogin/ script in the
configuration file. This entry specifies the commands to send to tell
the proxy server what to connect to. Please see
&configureindex; for an example of
how to do this. The subsitution variables available are
<literal/$(PROXY_USER)/, <literal/$(PROXY_PASS)/, <literal/$(SITE_USER)/,
<literal/$(SITE_PASS)/, <literal/$(SITE)/, and <literal/$(SITE_PORT)/.
Each is taken from it's respective URI component.
<para>
The option <literal/timeout/ sets the timeout timer used by the method,
this applies to all things including connection timeout and data timeout.
<para>
Several settings are provided to control passive mode. Generally it is
safe to leave passive mode on, it works in nearly every environment.
However some situations require that passive mode be disabled and port
mode ftp used instead. This can be done globally, for connections that
go through a proxy or for a specific host (See the sample config file
for examples)
<para>
It is possible to proxy FTP over HTTP by setting the <envar/ftp_proxy/
environment variable to a http url - see the discussion of the http method
above for syntax. You cannot set this in the configuration file and it is
not recommended to use FTP over HTTP due to its low efficiency.
<para>
The setting <literal/ForceExtended/ controls the use of RFC2428
<literal/EPSV/ and <literal/EPRT/ commands. The defaut is false, which means
these commands are only used if the control connection is IPv6. Setting this
to true forces their use even on IPv4 connections. Note that most FTP servers
do not support RFC2428.
</VarListEntry>
<VarListEntry><Term>cdrom</Term>
<ListItem><Para>
CDROM URIs; the only setting for CDROM URIs is the mount point,
<literal/cdrom::Mount/ which must be the mount point for the CDROM drive
as specified in <filename>/etc/fstab</>. It is possible to provide
alternate mount and unmount commands if your mount point cannot be listed
in the fstab (such as an SMB mount and old mount packages). The syntax
is to put <literallayout>"/cdrom/"::Mount "foo";</literallayout> within
the cdrom block. It is important to have the trailing slash. Unmount
commands can be specified using UMount.
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1><Title>Directories</>
<para>
The <literal/Dir::State/ section has directories that pertain to local
state information. <literal/lists/ is the directory to place downloaded
package lists in and <literal/status/ is the name of the dpkg status file.
<literal/preferences/ is the name of the APT preferences file.
<literal/Dir::State/ contains the default directory to prefix on all sub
items if they do not start with <filename>/</> or <filename>./</>.
<para>
<literal/Dir::Cache/ contains locations pertaining to local cache
information, such as the two package caches <literal/srcpkgcache/ and
<literal/pkgcache/ as well as the location to place downloaded archives,
<literal/Dir::Cache::archives/. Generation of caches can be turned off
by setting their names to be blank. This will slow down startup but
save disk space. It is probably prefered to turn off the pkgcache rather
than the srcpkgcache. Like <literal/Dir::State/ the default
directory is contained in <literal/Dir::Cache/
<para>
<literal/Dir::Etc/ contains the location of configuration files,
<literal/sourcelist/ gives the location of the sourcelist and
<literal/main/ is the default configuration file (setting has no effect,
unless it is done from the config file specified by
<envar/APT_CONFIG/).
<para>
The <literal/Dir::Parts/ setting reads in all the config fragments in
lexical order from the directory specified. After this is done then the
main config file is loaded.
<para>
Binary programs are pointed to by <literal/Dir::Bin/. <literal/methods/
specifies the location of the method handlers and <literal/gzip/,
<literal/dpkg/, <literal/apt-get/, <literal/dpkg-source/,
<literal/dpkg-buildpackage/ and <literal/apt-cache/ specify the location
of the respective programs.
</RefSect1>
<RefSect1><Title>APT in DSelect</>
<para>
When APT is used as a &dselect; method several configuration directives
control the default behaviour. These are in the <literal/DSelect/ section.
<VariableList>
<VarListEntry><Term>Clean</Term>
<ListItem><Para>
Cache Clean mode; this value may be one of always, prompt, auto,
pre-auto and never. always and prompt will remove all packages from
the cache after upgrading, prompt (the default) does so conditionally.
auto removes only those packages which are no longer downloadable
(replaced with a new version for instance). pre-auto performs this
action before downloading new packages.
</VarListEntry>
<VarListEntry><Term>Options</Term>
<ListItem><Para>
The contents of this variable is passed to &apt-get; as command line
options when it is run for the install phase.
</VarListEntry>
<VarListEntry><Term>UpdateOptions</Term>
<ListItem><Para>
The contents of this variable is passed to &apt-get; as command line
options when it is run for the update phase.
</VarListEntry>
<VarListEntry><Term>PromptAfterUpdate</Term>
<ListItem><Para>
If true the [U]pdate operation in &dselect; will always prompt to continue.
The default is to prompt only on error.
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1><Title>How APT calls dpkg</>
<para>
Several configuration directives control how APT invokes &dpkg;. These are
in the <literal/DPkg/ section.
<VariableList>
<VarListEntry><Term>Options</Term>
<ListItem><Para>
This is a list of options to pass to dpkg. The options must be specified
using the list notation and each list item is passed as a single argument
to &dpkg;.
</VarListEntry>
<VarListEntry><Term>Pre-Invoke</Term><Term>Post-Invoke</Term>
<ListItem><Para>
This is a list of shell commands to run before/after invoking &dpkg;.
Like <literal/Options/ this must be specified in list notation. The
commands are invoked in order using <filename>/bin/sh</>, should any
fail APT will abort.
</VarListEntry>
<VarListEntry><Term>Pre-Install-Pkgs</Term>
<ListItem><Para>
This is a list of shell commands to run before invoking dpkg. Like
<literal/Options/ this must be specified in list notation. The commands
are invoked in order using <filename>/bin/sh</>, should any fail APT
will abort. APT will pass to the commands on standard input the
filenames of all .deb files it is going to install, one per line.
<para>
Version 2 of this protocol dumps more information, including the
protocol version, the APT configuration space and the packages, files
and versions being changed. Version 2 is enabled by setting
<literal/DPkg::Tools::Options::cmd::Version/ to 2. <literal/cmd/ is a
command given to <literal/Pre-Install-Pkgs/.
</VarListEntry>
<VarListEntry><Term>Run-Directory</Term>
<ListItem><Para>
APT chdirs to this directory before invoking dpkg, the default is
<filename>/</>.
</VarListEntry>
<VarListEntry><Term>Build-Options</Term>
<ListItem><Para>
These options are passed to &dpkg-buildpackage; when compiling packages,
the default is to disable signing and produce all binaries.
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1><Title>Debug Options</>
<para>
Most of the options in the <literal/debug/ section are not interesting to
the normal user, however <literal/Debug::pkgProblemResolver/ shows
interesting output about the decisions dist-upgrade makes.
<literal/Debug::NoLocking/ disables file locking so APT can do some
operations as non-root and <literal/Debug::pkgDPkgPM/ will print out the
command line for each dpkg invokation. <literal/Debug::IdentCdrom/ will
disable the inclusion of statfs data in CDROM IDs.
</RefSect1>
<RefSect1><Title>Examples</>
<para>
&configureindex; contains a
sample configuration file showing the default values for all possible
options.
</RefSect1>
<RefSect1><Title>Files</>
<para>
<filename>/etc/apt/apt.conf</>
</RefSect1>
<RefSect1><Title>See Also</>
<para>
&apt-cache;, &apt-config;<!-- ? reading apt.conf -->, &apt-preferences;.
</RefSect1>
&manbugs;
&manauthor;
</refentry>
Reply to: