dpkg-divert.8 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. Directories can't be diverted with dpkg-divert.
  70. Care should be taken when diverting shared libraries, ldconfig (8) creates
  71. a symbolic link based on the DT_SONAME field embedded in the library.
  72. Because ldconfig doesn't honour diverts (only dpkg does), if a diverted
  73. ibrary has the same SONAME as the undiverted one the symlink may end up
  74. pointing at the diverted library.
  75. .SH FILES
  76. .TP
  77. .I /var/lib/dpkg/diversions
  78. File which contains the current list of diversions of the system. It is
  79. located in the dpkg administration directory, along with other files
  80. important to dpkg, such as `status' or `available'.
  81. .br
  82. Note: dpkg-divert preserves the old copy of this file, with extension
  83. "-old", before replacing it with the new one.
  84. .SH SEE ALSO
  85. .BR dpkg (8).
  86. .sp
  87. Please read the Debian Packaging Manual, section 11., "Diversions -
  88. overriding a package's version of a file" for more information.
  89. .SH AUTHOR
  90. Copyright (C) 1995 Ian Jackson.
  91. .sp
  92. This is free software; see the GNU General Public Licence
  93. version 2 or later for copying conditions. There is NO warranty.