dpkg (1.18.25) stretch; urgency=medium
[dpkg] / man / es / dpkg-divert.man
CommitLineData
1479465f
GJ
1.\" dpkg manual page - dpkg-divert(1)
2.\"
3.\" Copyright © 1995 Ian Jackson <ijackson@chiark.greenend.org.uk>
4.\" Copyright © 1999 Wichert Akkerman <wakkerma@debian.org>
5.\" Copyright © 2004 Scott James Remnant <keybuk@debian.org>
6.\" Copyright © 2007-2013, 2015 Guillem Jover <guillem@debian.org>
7.\"
8.\" This is free software; you can redistribute it and/or modify
9.\" it under the terms of the GNU General Public License as published by
10.\" the Free Software Foundation; either version 2 of the License, or
11.\" (at your option) any later version.
12.\"
13.\" This is distributed in the hope that it will be useful,
14.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16.\" GNU General Public License for more details.
17.\"
18.\" You should have received a copy of the GNU General Public License
19.\" along with this program. If not, see <https://www.gnu.org/licenses/>.
20.
21.\"*******************************************************************
22.\"
23.\" This file was generated with po4a. Translate the source file.
24.\"
25.\"*******************************************************************
26.TH dpkg\-divert 1 %RELEASE_DATE% %VERSION% "Herramientas de dpkg"
27.nh
28.SH NOMBRE
29dpkg\-divert \- Redefine la versión de un fichero del paquete
30.
31.SH SINOPSIS
32\fBdpkg\-divert\fP [\fIopción\fP...] \fIorden\fP
33.
34.SH DESCRIPCIÓN
35\fBdpkg\-divert\fP es una herramienta para configurar y actualizar la lista de
36redirecciones.
37.PP
38File \fIdiversions\fP are a way of forcing \fBdpkg\fP(1) not to install a file
39into its location, but to a \fIdiverted\fP location. Diversions can be used
40through the Debian package scripts to move a file away when it causes a
41conflict. System administrators can also use it to override some package's
42configuration file, or whenever some files (which aren't marked as
43“conffiles”) need to be preserved by \fBdpkg\fP, when installing a newer
44version of a package which contains those files.
45.sp
46.SH ÓRDENES
47.TP
48[\fB\-\-add\fP] \fIfichero\fP
49Añade una redirección para el \fIfichero\fP.
50.TP
51\fB\-\-remove\fP\fI fichero\fP
52Elimina una redirección para el \fIfichero\fP.
53.TP
54\fB\-\-list\fP\fI comodín\fP
55Lista las redirecciones que encajan con el \fIcomodín\fP (patrón «glob»).
56.TP
57\fB\-\-listpackage\fP\fI fichero\fP
58Print the name of the package that diverts \fIfile\fP (since dpkg 1.15.0).
59Prints LOCAL if \fIfile\fP is locally diverted and nothing if \fIfile\fP is not
60diverted.
61.TP
62\fB\-\-truename\fP\fI fichero\fP
63Muestra el nombre real del fichero redirigido.
64.
65.SH OPCIONES
66.TP
67\fB\-\-admindir\fP\fI directorio\fP
68Set the \fBdpkg\fP data directory to \fIdirectory\fP (default: \fI%ADMINDIR%\fP).
69.TP
70\fB\-\-divert\fP\fI redirigir\-a\fP
71\fIredirigir\-a\fP es la ubicación donde las versiones del \fIfichero\fP, tal y
72como otros paquetes lo ofrecen, se redirigirá.
73.TP
74\fB\-\-local\fP
75Especifica que todas las versiones de los paquetes de este fichero se
76redirigirán. Esto es, sin excepciones, y sin importar qué paquete está
77instalado, el fichero se redirigirá. El administrador del sistema puede
78utilizar esto para instalar una versión modificada localmente.
79.TP
80\fB\-\-package\fP\fI paquete\fP
81\fIpaquete\fP es el nombre de un paquete cuya copia del \fIfichero\fP no se
82redirigirá. Por ejemplo, el \fIfichero\fP se redirigirá para todos los paquetes
83a excepción de \fIpaquete\fP.
84.TP
85\fB\-\-quiet\fP
86Modo silencioso, esto es: sin información detallada.
87.TP
88\fB\-\-rename\fP
89Mueve el archivo a un lado (o atrás). \fBdpkg\-divert\fP interrumpirá la
90operación en caso de que el fichero destino ya exista.
91.TP
92\fB\-\-test\fP
93Modo de prueba, esto es, no realiza ningún cambio, sólo muestra su
94ejecución.
95.TP
96\fB\-?\fP, \fB\-\-help\fP
97Muestra el modo de uso y termina.
98.TP
99\fB\-\-version\fP
100Muestra la versión y termina.
101.
102.SH "ESTADOS DE SALIDA"
103.TP
104\fB0\fP
105La acción requerida finalizó con éxito.
106.TP
107\fB2\fP
108Fatal or unrecoverable error due to invalid command\-line usage, or
109interactions with the system, such as accesses to the database, memory
110allocations, etc.
111.
112.SH ENTORNO
113.TP
114\fBDPKG_ADMINDIR\fP
115If set and the \fB\-\-admindir\fP option has not been specified, it will be used
116as the \fBdpkg\fP data directory.
117.TP
118\fBDPKG_MAINTSCRIPT_PACKAGE\fP
119Si se define, y las opciones \fB\-\-local\fP y \fB\-\-package\fP no se definen,
120\fBdpkg\-divert\fP lo utiliza como el nombre de paquete.
121.
122.SH FICHEROS
123.TP
124\fI%ADMINDIR%/diversions\fP
125File which contains the current list of diversions of the system. It is
126located in the \fBdpkg\fP administration directory, along with other files
127important to \fBdpkg\fP, such as \fIstatus\fP or \fIavailable\fP.
128.br
129Nota: \fBdpkg\-divert\fP preserva la copia antigua de este archivo, insertando
130la extensión \fI\-old\fP antes de reemplazarlo con uno nuevo.
131.
132.SH NOTAS
133Al añadir redirecciones se usa \fB\-\-local\fP y \fB\-\-divert\fP
134\fIoriginal\fP\fB.distrib\fP de forma predefinida. Al eliminar, \fB\-\-package\fP o
135\fB\-\-local\fP deben coincidir con \fB\-\-divert\fP si se definen.
136
137Los directorios no se pueden redirigir con \fBdpkg\-divert\fP.
138
139Care should be taken when diverting shared libraries, \fBldconfig\fP(8)
140creates a symbolic link based on the DT_SONAME field embedded in the
141library. Because \fBldconfig\fP doesn't honour diverts (only \fBdpkg\fP does),
142the symlink may end up pointing at the diverted library, if a diverted
143library has the same SONAME as the undiverted one.
144.
145.SH EJEMPLOS
146Para redireccionar todas las copias de \fI/usr/bin/ejemplo\fP a
147\fI/usr/bin/ejemplo.foo\fP; hará que todos los paquetes que provean
148\fI/usr/bin/ejemplo\fP lo instalen como \fI/usr/bin/ejemplo.foo\fP, renombrando el
149fichero en caso de ser necesario.
150.HP
151dpkg\-divert \-\-divert /usr/bin/ejemplo.foo \-\-rename /usr/bin/ejemplo
152.PP
153Para eliminar esa redirección:
154.HP
155dpkg\-divert \-\-rename \-\-remove /usr/bin/ejemplo
156
157.PP
158Para redireccionar cualquier paquete que instale \fI/usr/bin/ejemplo\fP como
159\fI/usr/bin/ejemplo.foo\fP, a excepción de su propio paquete \fIwibble\fP:
160.HP
161dpkg\-divert \-\-package wibble \-\-divert /usr/bin/ejemplo.foo \-\-rename
162/usr/bin/ejemplo
163.PP
164Para eliminar esa redirección:
165.HP
166dpkg\-divert \-\-package wibble \-\-rename \-\-remove /usr/bin/ejemplo
167.
168.SH "VÉASE TAMBIÉN"
169\fBdpkg\fP(1).
170.SH TRADUCTOR
171Rudy Godoy <rudy@kernel\-panik.org>,
172Rubén Porras <nahoo@inicia.es>,
173Bruno Barrera C. <bruno.barrera@igloo.cl>,
174Carlos Izquierdo <gheesh@ertis.net>,
175Esteban Manchado y
176NOK.
177Debian L10n Spanish <debian\-l10n\-spanish@lists.debian.org>.
178.br
179Revisiones por Santiago Vila <sanvila@unex.es>,
180Javier Fernández\-Sanguino, Rubén Porras,
181Luis Uribe y Omar Campagne.