chiark / gitweb /
awful debugging hacking
[dpkg] / man / es / dpkg-divert.man
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
29 dpkg\-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
36 redirecciones.
37 .PP
38 File \fIdiversions\fP are a way of forcing \fBdpkg\fP(1)  not to install a file
39 into its location, but to a \fIdiverted\fP location. Diversions can be used
40 through the Debian package scripts to move a file away when it causes a
41 conflict. System administrators can also use it to override some package's
42 configuration file, or whenever some files (which aren't marked as
43 “conffiles”) need to be preserved by \fBdpkg\fP, when installing a newer
44 version of a package which contains those files.
45 .sp
46 .SH ÓRDENES
47 .TP 
48 [\fB\-\-add\fP] \fIfichero\fP
49 Añade una redirección para el \fIfichero\fP.
50 .TP 
51 \fB\-\-remove\fP\fI fichero\fP
52 Elimina una redirección para el \fIfichero\fP.
53 .TP 
54 \fB\-\-list\fP\fI comodín\fP
55 Lista las redirecciones que encajan con el \fIcomodín\fP (patrón «glob»).
56 .TP 
57 \fB\-\-listpackage\fP\fI fichero\fP
58 Print the name of the package that diverts \fIfile\fP (since dpkg 1.15.0).
59 Prints LOCAL if \fIfile\fP is locally diverted and nothing if \fIfile\fP is not
60 diverted.
61 .TP 
62 \fB\-\-truename\fP\fI fichero\fP
63 Muestra el nombre real del fichero redirigido.
64 .
65 .SH OPCIONES
66 .TP 
67 \fB\-\-admindir\fP\fI directorio\fP
68 Set 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
72 como otros paquetes lo ofrecen, se redirigirá.
73 .TP 
74 \fB\-\-local\fP
75 Especifica que todas las versiones de los paquetes de este fichero se
76 redirigirán. Esto es, sin excepciones, y sin importar qué paquete está
77 instalado, el fichero se redirigirá. El administrador del sistema puede
78 utilizar 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
82 redirigirá. Por ejemplo, el \fIfichero\fP se redirigirá para todos los paquetes
83 a excepción de \fIpaquete\fP.
84 .TP 
85 \fB\-\-quiet\fP
86 Modo silencioso, esto es: sin información detallada.
87 .TP 
88 \fB\-\-rename\fP
89 Mueve el archivo a un lado (o atrás). \fBdpkg\-divert\fP interrumpirá la
90 operación en caso de que el fichero destino ya exista.
91 .TP 
92 \fB\-\-test\fP
93 Modo de prueba, esto es, no realiza ningún cambio, sólo muestra su
94 ejecución.
95 .TP 
96 \fB\-?\fP, \fB\-\-help\fP
97 Muestra el modo de uso y termina.
98 .TP 
99 \fB\-\-version\fP
100 Muestra la versión y termina.
101 .
102 .SH "ESTADOS DE SALIDA"
103 .TP 
104 \fB0\fP
105 La acción requerida finalizó con éxito.
106 .TP 
107 \fB2\fP
108 Fatal or unrecoverable error due to invalid command\-line usage, or
109 interactions with the system, such as accesses to the database, memory
110 allocations, etc.
111 .
112 .SH ENTORNO
113 .TP 
114 \fBDPKG_ADMINDIR\fP
115 If set and the \fB\-\-admindir\fP option has not been specified, it will be used
116 as the \fBdpkg\fP data directory.
117 .TP 
118 \fBDPKG_MAINTSCRIPT_PACKAGE\fP
119 Si 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
125 File which contains the current list of diversions of the system. It is
126 located in the \fBdpkg\fP administration directory, along with other files
127 important to \fBdpkg\fP, such as \fIstatus\fP or \fIavailable\fP.
128 .br
129 Nota: \fBdpkg\-divert\fP preserva la copia antigua de este archivo, insertando
130 la extensión \fI\-old\fP antes de reemplazarlo con uno nuevo.
131 .
132 .SH NOTAS
133 Al 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
137 Los directorios no se pueden redirigir con \fBdpkg\-divert\fP.
138
139 Care should be taken when diverting shared libraries, \fBldconfig\fP(8)
140 creates a symbolic link based on the DT_SONAME field embedded in the
141 library.  Because \fBldconfig\fP doesn't honour diverts (only \fBdpkg\fP does),
142 the symlink may end up pointing at the diverted library, if a diverted
143 library has the same SONAME as the undiverted one.
144 .
145 .SH EJEMPLOS
146 Para 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
149 fichero en caso de ser necesario.
150 .HP
151 dpkg\-divert \-\-divert /usr/bin/ejemplo.foo \-\-rename /usr/bin/ejemplo
152 .PP
153 Para eliminar esa redirección:
154 .HP
155 dpkg\-divert \-\-rename \-\-remove /usr/bin/ejemplo
156
157 .PP
158 Para 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
161 dpkg\-divert \-\-package wibble \-\-divert /usr/bin/ejemplo.foo \-\-rename
162 /usr/bin/ejemplo
163 .PP
164 Para eliminar esa redirección:
165 .HP
166 dpkg\-divert \-\-package wibble \-\-rename \-\-remove /usr/bin/ejemplo
167 .
168 .SH "VÉASE TAMBIÉN"
169 \fBdpkg\fP(1).
170 .SH TRADUCTOR
171 Rudy Godoy <rudy@kernel\-panik.org>,
172 Rubén Porras <nahoo@inicia.es>,
173 Bruno Barrera C. <bruno.barrera@igloo.cl>,
174 Carlos Izquierdo <gheesh@ertis.net>,
175 Esteban Manchado y
176 NOK.
177 Debian L10n Spanish <debian\-l10n\-spanish@lists.debian.org>.
178 .br
179 Revisiones por Santiago Vila <sanvila@unex.es>,
180 Javier Fernández\-Sanguino, Rubén Porras,
181 Luis Uribe y Omar Campagne.