dpkg-trigger.1 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .TH dpkg\-trigger 1 "2011-08-14" "Debian Project" "dpkg suite"
  2. .SH NAME
  3. dpkg\-trigger \- a package trigger utility
  4. .
  5. .SH SYNOPSIS
  6. .B dpkg\-trigger
  7. .RI [ option "...] " trigger-name
  8. .br
  9. .B dpkg\-trigger
  10. .RI [ option "...] " command
  11. .
  12. .SH DESCRIPTION
  13. \fBdpkg\-trigger\fP is a tool to explicitly activate triggers and check
  14. for its support on the running \fBdpkg\fP.
  15. .PP
  16. This can be used by maintainer scripts in complex and conditional
  17. situations where the file triggers, or the declarative \fBactivate\fP
  18. triggers control file directive, are insufficiently rich. It can also
  19. be used for testing and by system administrators (but note that the
  20. triggers won't actually be run by \fBdpkg\-trigger\fP).
  21. .PP
  22. Unrecognised trigger name syntaxes are an error for \fBdpkg\-trigger\fP.
  23. .
  24. .SH COMMANDS
  25. .TP
  26. .BR \-\-check\-supported
  27. Check if the running \fBdpkg\fP supports triggers (usually called from a
  28. postinst). Will exit \fB0\fP if a triggers-capable \fBdpkg\fP has run,
  29. or \fB1\fP with an error message to stderr if not. Normally, however,
  30. it is better just to activate the desired trigger with \fBdpkg\-trigger\fP.
  31. .TP
  32. .BR \-h ", " \-\-help
  33. Show the usage message and exit.
  34. .TP
  35. .B \-\-version
  36. Show the version and exit.
  37. .
  38. .SH OPTIONS
  39. .TP
  40. .BI \-\-admindir= dir
  41. Change the location of the \fBdpkg\fR database. The default location is
  42. \fI/var/lib/dpkg\fP.
  43. .TP
  44. .BR \-\-by\-package=\fIpackage\fR
  45. Override trigger awaiter (normally set by \fBdpkg\fP through the
  46. \fBDPKG_MAINTSCRIPT_PACKAGE\fP environment variable of the maintainer scripts,
  47. naming the package to which the script belongs, and this will be used
  48. by default).
  49. .TP
  50. .BR \-\-no\-await
  51. This option arranges that the calling package T (if any) need not await
  52. the processing of this trigger; the interested package(s) I, will not be
  53. added to T's trigger processing awaited list and T's status is unchanged.
  54. T may be considered installed even though I may not yet have processed
  55. the trigger.
  56. .TP
  57. .BR \-\-no\-act
  58. Just test, do not actually change anything.
  59. .
  60. .SH ENVIRONMENT
  61. .TP
  62. .B DPKG_ADMINDIR
  63. If set and the \fB\-\-admindir\fP option has not been specified, it will
  64. be used as the dpkg data directory.
  65. .
  66. .SH SEE ALSO
  67. .BR dpkg (1),
  68. .BR deb\-triggers (5),
  69. .BR /usr/share/doc/dpkg\-dev/triggers.txt.gz .