Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dpkg-trigger Command package trigger under linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report