tech:debian_conflit_2paquet_meme_fichier

Quand 2 paquets Debian fournissent un fichier même nom, même arborescence.

Deux paquets .deb (apt:moreutils et apt:parallel) fournissent un fichier /usr/bin/parallel

apt-file search /usr/bin/parallel |grep '/usr/bin/parallel$'

moreutils: /usr/bin/parallel parallel: /usr/bin/parallel

apt-get update && apt-get install moreutils
ls -ld $(dpkg -L moreutils | sed -e '1d') | grep '^-'|awk '{print $9}' | grep -v parallel | cpio -ov --format=ustar |gzip > moreutils.tar.gz
apt-get remove moreutils
cd /
tar xzvf moreutils.tar.gz -C '/'
apt-get install parallel

FIXME C'est pour l'exemple avec cpio. Mais c'est pas très propre. Il contraindrait d'utiliser dpkg-divert

tech/debian_conflit_2paquet_meme_fichier.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki