Dpkg-divert: Difference between revisions
From ICO wiki
Jump to navigationJump to search
Line 29: | Line 29: | ||
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: | 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: | ||
<pre>dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example</pre> | <pre>dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example</pre> | ||
To remove that diversion: | To remove that diversion: | ||
<pre>dpkg-divert --rename --remove /usr/bin/example</pre> | <pre>dpkg-divert --rename --remove /usr/bin/example</pre> | ||
To divert any package trying to install /usr/bin/example to /usr/bin/example.foo, except your own wibble package: | To divert any package trying to install /usr/bin/example to /usr/bin/example.foo, except your own wibble package: | ||
<pre>dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /usr/bin/example</pre> | <pre>dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /usr/bin/example</pre> | ||
To remove that diversion: | To remove that diversion: |
Revision as of 20:55, 28 December 2013
SISSEJUHATUS
Valmimas 2013
DPKG-DIVERT
Kirjeldus
asd
Süntaks
dpkg-divert [valik...] käsk
Käsud
asd lasdlalsdlasd
asd
asd
Valikud
asd
asd
asd
Näited
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
KOKKUVÕTE
Valmimas 2013
KASUTATUD KIRJANDUS
- Ian Jackson, dpkg-divert manual, Debian Project 2011
- http://manpages.debian.net/cgi-bin/man.cgi?query=dpkg-divert
AUTOR
SIIM PÄÄRO AK21