dpkg-trigger.1 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .TH dpkg\-trigger 1 "2008-04-08" "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 explicitely 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 dpkg-trigger).
  21. .PP
  22. Unrecognised trigger name syntaxes are an error for dpkg-trigger.
  23. .
  24. .SH COMMANDS
  25. .TP
  26. .BR \-\-check\-supported
  27. Check if the running dpkg supports triggers (usually called from a postinst).
  28. Will exit 0 if a triggers-capable dpkg has run, or 1 with an error message
  29. to stderr if not. Normally, however, it is better just to activate the
  30. 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. .TP
  38. .BR \-\-license ", " \-\-licence
  39. Show the copyright licensing terms and exit.
  40. .
  41. .SH OPTIONS
  42. .TP
  43. .BI \-\-admindir= dir
  44. Change the location of the \fBdpkg\fR database. The default location is
  45. \fI/var/lib/dpkg\fP.
  46. .TP
  47. .BR \-\-by\-package=\fIpackage\fR
  48. Override trigger awaiter (normally set by dpkg through the
  49. DPKG_MAINTSCRIPT_PACKAGE environment variable of the maintainer scripts,
  50. naming the package to which the script belongs, and this will be used
  51. by default).
  52. .TP
  53. .BR \-\-no\-await
  54. This option arranges that the calling package T (if any) need not await
  55. the processing of this trigger; the interested package(s) I, will not be
  56. added to T's trigger processing awaited list and T's status is unchanged.
  57. T may be considered installed even though I may not yet have processed
  58. the trigger.
  59. .TP
  60. .BR \-\-no\-act
  61. Just test, do not actually change anything.
  62. .
  63. .SH SEE ALSO
  64. .BR dpkg "(1), " deb-triggers (5).