dpkg-divert.8 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .TH DPKG-DIVERT 8 "December 1999" "Debian Project" "dpkg utilities"
  2. .SH NAME
  3. dpkg-divert -- override a package's version of a file
  4. .SH SYNOPSIS
  5. .B dpkg-divert
  6. [options] [--add]
  7. .I <file>
  8. .br
  9. .B dpkg-divert
  10. [options] --remove
  11. .I <file>
  12. .br
  13. .B dpkg-divert
  14. [options]
  15. --list
  16. .I <glob-pattern>
  17. .B dpkg-divert
  18. [options] --truename
  19. .I <file>
  20. .br
  21. .SH DESCRIPTION
  22. File `diversions' are a way of forcing dpkg not to install a file into its
  23. location, but to a `diverted' location. Diversions can be used through the
  24. Debian package scripts to move a file away when it causes a conflict. System
  25. administrators can also use it to override some package's configuration
  26. file, or whenever some files (which aren't marked as 'conffiles') need to be
  27. preserved by dpkg, when installing a newer version of a package which
  28. contains those files.
  29. .sp
  30. .B dpkg-divert
  31. is the utility used to set up and update the list of diversions. It
  32. functions in three basic modes - adding, removing, and listing diversions.
  33. The options are --add, --remove, and --list, respectively. Additionally,
  34. it can print out the real name for a diverted file. Other options
  35. (listed below) may also be specified.
  36. .SH OPTIONS
  37. .TP
  38. .I --admindir <directory>
  39. Set the dpkg data directory to <directory> (default: /var/lib/dpkg).
  40. .TP
  41. .I --divert <divert-to>
  42. <divert-to> is the name used by other packages' versions.
  43. .TP
  44. .I --help
  45. Output the version and the short usage instructions, and exit successfully.
  46. .TP
  47. .I --local
  48. Specifies that all packages' versions are diverted.
  49. .TP
  50. .I --package <package>
  51. <package> is the name of a package whose copy of <file> will not be diverted.
  52. .TP
  53. .I --quiet
  54. Quiet mode, i.e. no verbose output.
  55. .TP
  56. .I --rename
  57. Actually move the file aside (or back). dpkg-divert will abort operation
  58. in case the destination file already exists.
  59. .TP
  60. .I --test
  61. Test mode, i.e. don't actually perform any changes, just demonstrate.
  62. .TP
  63. .I --version
  64. Output program name and version and exit successfully.
  65. .SH NOTES
  66. When adding, default is --local and --divert <original>.distrib.
  67. When removing, --package or --local and --divert must match if specified.
  68. .br
  69. Directories can't be diverted with dpkg-divert.
  70. .SH FILES
  71. .TP
  72. .I /var/lib/dpkg/diversions
  73. File which contains the current list of diversions of the system. It is
  74. located in the dpkg administration directory, along with other files
  75. important to dpkg, such as `status' or `available'.
  76. .br
  77. Note: dpkg-divert preserves the old copy of this file, with extension
  78. "-old", before replacing it with the new one.
  79. .SH SEE ALSO
  80. .BR dpkg (8).
  81. .sp
  82. Please read the Debian Packaging Manual, section 11., "Diversions -
  83. overriding a package's version of a file" for more information.
  84. .SH AUTHOR
  85. Copyright (C) 1995 Ian Jackson.
  86. .sp
  87. This is free software; see the GNU General Public Licence
  88. version 2 or later for copying conditions. There is NO warranty.