dpkg-trigger.1 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .TH dpkg\-trigger 1 "2009-03-15" "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 0 if a triggers-capable \fBdpkg\fP has run, or 1 with
  29. an error message to stderr if not. Normally, however, it is better just to
  30. 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. DPKG_MAINTSCRIPT_PACKAGE 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 SEE ALSO
  61. .BR dpkg "(1), " deb-triggers "(5), " /usr/share/doc/dpkg/triggers.txt.gz .