dpkg-divert.8 2.8 KB

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