.\" dpkg manual page - dpkg-divert(1) .\" .\" Copyright © 1995 Ian Jackson .\" Copyright © 1999 Wichert Akkerman .\" Copyright © 2004 Scott James Remnant .\" Copyright © 2007-2013, 2015 Guillem Jover .\" .\" This is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . . .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH dpkg\-divert 1 2018-05-06 1.19.0.5 "Herramientas de dpkg" .nh .SH NOMBRE dpkg\-divert \- Redefine la versi\('on de un fichero del paquete . .SH SINOPSIS \fBdpkg\-divert\fP [\fIopci\('on\fP...] \fIorden\fP . .SH DESCRIPCI\('ON \fBdpkg\-divert\fP es una herramienta para configurar y actualizar la lista de redirecciones. .PP File \fIdiversions\fP are a way of forcing \fBdpkg\fP(1) not to install a file into its location, but to a \fIdiverted\fP location. Diversions can be used through the Debian package scripts to move a file away when it causes a conflict. System administrators can also use it to override some package's configuration file, or whenever some files (which aren't marked as \(lqconffiles\(rq) need to be preserved by \fBdpkg\fP, when installing a newer version of a package which contains those files. .sp .SH \('ORDENES .TP [\fB\-\-add\fP] \fIfichero\fP A\(~nade una redirecci\('on para el \fIfichero\fP. .TP \fB\-\-remove\fP\fI fichero\fP Elimina una redirecci\('on para el \fIfichero\fP. .TP \fB\-\-list\fP\fI comod\('in\fP Lista las redirecciones que encajan con el \fIcomod\('in\fP (patr\('on \(Foglob\(Fc). .TP \fB\-\-listpackage\fP\fI fichero\fP Print the name of the package that diverts \fIfile\fP (since dpkg 1.15.0). Prints LOCAL if \fIfile\fP is locally diverted and nothing if \fIfile\fP is not diverted. .TP \fB\-\-truename\fP\fI fichero\fP Muestra el nombre real del fichero redirigido. . .SH OPCIONES .TP \fB\-\-admindir\fP\fI directorio\fP Set the \fBdpkg\fP data directory to \fIdirectory\fP (default: \fI/var/lib/dpkg\fP). .TP \fB\-\-divert\fP\fI redirigir\-a\fP \fIredirigir\-a\fP es la ubicaci\('on donde las versiones del \fIfichero\fP, tal y como otros paquetes lo ofrecen, se redirigir\('a. .TP \fB\-\-local\fP Especifica que todas las versiones de los paquetes de este fichero se redirigir\('an. Esto es, sin excepciones, y sin importar qu\('e paquete est\('a instalado, el fichero se redirigir\('a. El administrador del sistema puede utilizar esto para instalar una versi\('on modificada localmente. .TP \fB\-\-package\fP\fI paquete\fP \fIpaquete\fP es el nombre de un paquete cuya copia del \fIfichero\fP no se redirigir\('a. Por ejemplo, el \fIfichero\fP se redirigir\('a para todos los paquetes a excepci\('on de \fIpaquete\fP. .TP \fB\-\-quiet\fP Modo silencioso, esto es: sin informaci\('on detallada. .TP \fB\-\-rename\fP Mueve el archivo a un lado (o atr\('as). \fBdpkg\-divert\fP interrumpir\('a la operaci\('on en caso de que el fichero destino ya exista. .TP \fB\-\-test\fP Modo de prueba, esto es, no realiza ning\('un cambio, s\('olo muestra su ejecuci\('on. .TP \fB\-?\fP, \fB\-\-help\fP Muestra el modo de uso y termina. .TP \fB\-\-version\fP Muestra la versi\('on y termina. . .SH "ESTADOS DE SALIDA" .TP \fB0\fP La acci\('on requerida finaliz\('o con \('exito. .TP \fB2\fP Fatal or unrecoverable error due to invalid command\-line usage, or interactions with the system, such as accesses to the database, memory allocations, etc. . .SH ENTORNO .TP \fBDPKG_ADMINDIR\fP If set and the \fB\-\-admindir\fP option has not been specified, it will be used as the \fBdpkg\fP data directory. .TP \fBDPKG_MAINTSCRIPT_PACKAGE\fP Si se define, y las opciones \fB\-\-local\fP y \fB\-\-package\fP no se definen, \fBdpkg\-divert\fP lo utiliza como el nombre de paquete. . .SH FICHEROS .TP \fI/var/lib/dpkg/diversions\fP File which contains the current list of diversions of the system. It is located in the \fBdpkg\fP administration directory, along with other files important to \fBdpkg\fP, such as \fIstatus\fP or \fIavailable\fP. .br Nota: \fBdpkg\-divert\fP preserva la copia antigua de este archivo, insertando la extensi\('on \fI\-old\fP antes de reemplazarlo con uno nuevo. . .SH NOTAS Al a\(~nadir redirecciones se usa \fB\-\-local\fP y \fB\-\-divert\fP \fIoriginal\fP\fB.distrib\fP de forma predefinida. Al eliminar, \fB\-\-package\fP o \fB\-\-local\fP deben coincidir con \fB\-\-divert\fP si se definen. Los directorios no se pueden redirigir con \fBdpkg\-divert\fP. Care should be taken when diverting shared libraries, \fBldconfig\fP(8) creates a symbolic link based on the DT_SONAME field embedded in the library. Because \fBldconfig\fP doesn't honour diverts (only \fBdpkg\fP does), the symlink may end up pointing at the diverted library, if a diverted library has the same SONAME as the undiverted one. . .SH EJEMPLOS Para redireccionar todas las copias de \fI/usr/bin/ejemplo\fP a \fI/usr/bin/ejemplo.foo\fP; har\('a que todos los paquetes que provean \fI/usr/bin/ejemplo\fP lo instalen como \fI/usr/bin/ejemplo.foo\fP, renombrando el fichero en caso de ser necesario. .HP dpkg\-divert \-\-divert /usr/bin/ejemplo.foo \-\-rename /usr/bin/ejemplo .PP Para eliminar esa redirecci\('on: .HP dpkg\-divert \-\-rename \-\-remove /usr/bin/ejemplo .PP Para redireccionar cualquier paquete que instale \fI/usr/bin/ejemplo\fP como \fI/usr/bin/ejemplo.foo\fP, a excepci\('on de su propio paquete \fIwibble\fP: .HP dpkg\-divert \-\-package wibble \-\-divert /usr/bin/ejemplo.foo \-\-rename /usr/bin/ejemplo .PP Para eliminar esa redirecci\('on: .HP dpkg\-divert \-\-package wibble \-\-rename \-\-remove /usr/bin/ejemplo . .SH "V\('EASE TAMBI\('EN" \fBdpkg\fP(1). .SH TRADUCTOR Rudy Godoy , Rub\('en Porras , Bruno Barrera C. , Carlos Izquierdo , Esteban Manchado y NOK. Debian L10n Spanish . .br Revisiones por Santiago Vila , Javier Fern\('andez\-Sanguino, Rub\('en Porras, Luis Uribe y Omar Campagne.