Dpkg-divert: Difference between revisions
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
=== Valikud === | === Valikud === | ||
<pre>--admindir directory</pre> | <pre>--admindir directory</pre> | ||
Set the dpkg data directory to directory (default: /var/lib/dpkg) | |||
<pre>--divert divert-to</pre> | <pre>--divert divert-to</pre> | ||
divert-to is the location where the versions of file, as pro-vided by other packages, will be diverted. | |||
<pre>--local</pre> | <pre>--local</pre> | ||
Specifies that all packages' versions of this file are diverted. This means, that there are no exceptions, and whatever package is installed, the file is diverted. This can be used by an admin to install a locally modified version. | |||
<pre>--package package</pre> | <pre>--package package</pre> | ||
package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except package. | |||
<pre>--quiet</pre> | <pre>--quiet</pre> | ||
Quiet mode, i.e. no verbose output. | |||
<pre>--rename</pre> | <pre>--rename</pre> | ||
Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists. | |||
<pre>--test</pre> | <pre>--test</pre> | ||
Test mode, i.e. don't actually perform any changes, just demon-strate. | |||
<pre>-?</pre> | <pre>-?</pre> | ||
<pre>--help</pre> | <pre>--help</pre> | ||
Show the usage message and exit. | |||
<pre>--version</pre> | <pre>--version</pre> | ||
Show the version and exit. | |||
=== Näited === | === Näited === | ||
<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 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 --rename --remove /usr/bin/example</pre> | |||
To remove that diversion: | To remove that diversion: | ||
<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 divert any package trying to install /usr/bin/example to /usr/bin/example.foo, except your own wibble package: | |||
<pre>dpkg-divert --package wibble --rename --remove /usr/bin/example</pre> | |||
To remove that diversion: | To remove that diversion: | ||
Revision as of 21:07, 28 December 2013
SISSEJUHATUS
Valmimas 2013
DPKG-DIVERT
Kirjeldus
asd
Süntaks
dpkg-divert [valik...] käsk
Käsud
asd lasdlalsdlasd
asd
asd
Valikud
--admindir directory
Set the dpkg data directory to directory (default: /var/lib/dpkg)
--divert divert-to
divert-to is the location where the versions of file, as pro-vided by other packages, will be diverted.
--local
Specifies that all packages' versions of this file are diverted. This means, that there are no exceptions, and whatever package is installed, the file is diverted. This can be used by an admin to install a locally modified version.
--package package
package is the name of a package whose copy of file will not be diverted. i.e. file will be diverted for all packages except package.
--quiet
Quiet mode, i.e. no verbose output.
--rename
Actually move the file aside (or back). dpkg-divert will abort operation in case the destination file already exists.
--test
Test mode, i.e. don't actually perform any changes, just demon-strate.
-?
--help
Show the usage message and exit.
--version
Show the version and exit.
Näited
dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example
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 --rename --remove /usr/bin/example
To remove that diversion:
dpkg-divert --package wibble --divert /usr/bin/example.foo --rename /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 --rename --remove /usr/bin/example
To remove that diversion:
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