dpkg-divert
remplacer la version d'un fichier contenu dans un paquet.
- Provided by: dpkg (Version: 1.17.5ubuntu5.8)
- Report a bug
remplacer la version d'un fichier contenu dans un paquet.
dpkg-divert [option...] commande
dpkg-divert sert à créer et à mettre à jour la liste des détournements.
File diversions are a way of forcing dpkg(1) not to install a file into its location, but to a diverted 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 'conffiles') need to be preserved by dpkg, when installing a newer version of a package which contains those files.
Pour l'ajout, le défaut est --local et --divert original.distrib. Pour la suppression, --package ou --local et --divert doivent correspondre quand ils sont précisés.
On ne peut pas détourner des répertoires avec dpkg-divert.
Care should be taken when diverting shared libraries, ldconfig(8) creates a symbolic link based on the DT_SONAME field embedded in the library. Because ldconfig doesn't honour diverts (only dpkg does), the symlink may end up pointing at the diverted library, if a diverted library has the same SONAME as the undiverted one.
Pour détourner toutes les copies de /usr/bin/example vers /usr/bin/example.foo, c'est-à-dire demander aux paquets qui fournissent /usr/bin/example de l'installer dans /usr/bin/example.foo, en effectuant le changement de nom si nécessaire :
dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example
Pour supprimer ce détournement :
dpkg-divert --rename --remove /usr/bin/example
Pour détourner un paquet qui veut installer /usr/bin/example dans /usr/bin/example.foo, sauf votre propre paquet wibble :
dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /usr/bin/example
Pour supprimer ce détournement :
dpkg-divert --package wibble --rename --remove /usr/bin/example
Ariel VARDI <ariel.vardi@freesbee.fr>, 2002. Philippe Batailler, 2006. Nicolas François, 2006. Veuillez signaler toute erreur à <debian-l10n-french@lists.debian.org>.