dpkg-trigger.1 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .\" dpkg manual page - dpkg-trigger(1)
  2. .\"
  3. .\" Copyright © 2008-2015 Guillem Jover <guillem@debian.org>
  4. .\"
  5. .\" This is free software; you can redistribute it and/or modify
  6. .\" it under the terms of the GNU General Public License as published by
  7. .\" the Free Software Foundation; either version 2 of the License, or
  8. .\" (at your option) any later version.
  9. .\"
  10. .\" This is distributed in the hope that it will be useful,
  11. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. .\" GNU General Public License for more details.
  14. .\"
  15. .\" You should have received a copy of the GNU General Public License
  16. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. .
  18. .TH dpkg\-trigger 1 "2011-08-14" "Debian Project" "dpkg suite"
  19. .SH NAME
  20. dpkg\-trigger \- a package trigger utility
  21. .
  22. .SH SYNOPSIS
  23. .B dpkg\-trigger
  24. .RI [ option "...] " trigger-name
  25. .br
  26. .B dpkg\-trigger
  27. .RI [ option "...] " command
  28. .
  29. .SH DESCRIPTION
  30. \fBdpkg\-trigger\fP is a tool to explicitly activate triggers and check
  31. for its support on the running \fBdpkg\fP.
  32. .PP
  33. This can be used by maintainer scripts in complex and conditional
  34. situations where the file triggers, or the declarative \fBactivate\fP
  35. triggers control file directive, are insufficiently rich. It can also
  36. be used for testing and by system administrators (but note that the
  37. triggers won't actually be run by \fBdpkg\-trigger\fP).
  38. .PP
  39. Unrecognized trigger name syntaxes are an error for \fBdpkg\-trigger\fP.
  40. .
  41. .SH COMMANDS
  42. .TP
  43. .BR \-\-check\-supported
  44. Check if the running \fBdpkg\fP supports triggers (usually called from a
  45. postinst). Will exit \fB0\fP if a triggers-capable \fBdpkg\fP has run,
  46. or \fB1\fP with an error message to stderr if not. Normally, however,
  47. it is better just to activate the desired trigger with \fBdpkg\-trigger\fP.
  48. .TP
  49. .BR \-? ", " \-\-help
  50. Show the usage message and exit.
  51. .TP
  52. .B \-\-version
  53. Show the version and exit.
  54. .
  55. .SH OPTIONS
  56. .TP
  57. .BI \-\-admindir= dir
  58. Change the location of the \fBdpkg\fR database. The default location is
  59. \fI/var/lib/dpkg\fP.
  60. .TP
  61. .BR \-\-by\-package=\fIpackage\fR
  62. Override trigger awaiter (normally set by \fBdpkg\fP through the
  63. \fBDPKG_MAINTSCRIPT_PACKAGE\fP environment variable of the maintainer scripts,
  64. naming the package to which the script belongs, and this will be used
  65. by default).
  66. .TP
  67. .BR \-\-no\-await
  68. This option arranges that the calling package T (if any) need not await
  69. the processing of this trigger; the interested package(s) I, will not be
  70. added to T's trigger processing awaited list and T's status is unchanged.
  71. T may be considered installed even though I may not yet have processed
  72. the trigger.
  73. .TP
  74. .BR \-\-await
  75. This option does the inverse of \fB\-\-no\-await\fP (since dpkg 1.17.21).
  76. It is currently the default behavior.
  77. .TP
  78. .BR \-\-no\-act
  79. Just test, do not actually change anything.
  80. .
  81. .SH ENVIRONMENT
  82. .TP
  83. .B DPKG_ADMINDIR
  84. If set and the \fB\-\-admindir\fP option has not been specified, it will
  85. be used as the \fBdpkg\fP data directory.
  86. .
  87. .SH SEE ALSO
  88. .BR dpkg (1),
  89. .BR deb\-triggers (5),
  90. .BR /usr/share/doc/dpkg\-dev/triggers.txt.gz .