Dpkg-trigger Command package trigger under linux
Today Xiaobian to share with you is the dpkg-trigger command package trigger under linux, I believe many people do not know much, in order to let everyone know more, so give you a summary of the following content, look down together. I'm sure you'll find something.
The dpkg-trigger command is a package trigger for Debian Linux. The dpkg-trigger command can only be applied in maintainer scripts or must be used with the "--- by-package" parameter.
Syntax format: dpkg-trigger [parameter] [trigger]
Common parameters:
-- -check-supported Check whether the running dpkg supports triggers. If the return value is 0, triggers are supported-- -help Display help information--admindir= Set the directory where the dpkg database is located-- -no-act For testing only, do not perform any operation- -by-package= Overwrite trigger waiters
Since dpkg-trigger can only be run in maintainer scripts, running it directly from the command line will give an error message. Reference is made to examples below.
Reference Example
Run dpkg-trigger on the command line:
[root@linuxcool ~]# dpkg-trigger nowaitdpkg-trigger: error: must be called from the maintainer script (or through the--by-package option) about the dpkg-trigger command package trigger under linux to share here, I hope the above content can have a certain reference value for everyone, you can learn to apply. If you like this post, share it with more people.