Dateien in Packeten umbennen/an einer anderen Stelle installieren

Aus Bennys Wiki
Wechseln zu: Navigation, Suche

Dazu verwendet man dpkg-divert

EXAMPLES
       To divert all copies of  a  /usr/bin/example  to  /usr/bin/example.foo,
       i.e.  directs  all packages providing /usr/bin/example to install it as
       /usr/bin/example.foo, performing the rename if required:

       dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example

       To remove that diversion:

       dpkg-divert --rename --remove /usr/bin/example


       To  divert  any  package  trying   to   install   /usr/bin/example   to
       /usr/bin/example.foo, except your own wibble package:

       dpkg-divert  --package  wibble  --divert  /usr/bin/example.foo --rename
              /usr/bin/example

       To remove that diversion:

       dpkg-divert --package wibble --rename --remove /usr/bin/example