dpkg力在preint之后停止
我构建自己的软件包,需要在安装过程之前检查系统上的某些内容。
因此,在我的DPKG中,我添加了一个前脚本,如下所示。作为一个例子,我想检查是否可用arduino-cli命令:
echo 'Check arduino cli install ...'
if ! command -v arduino-cli &> /dev/null
then
exit 0
fi
indst脚本似乎已执行。这是DPKG执行的结果:
....
dpkg: error processing archive myserver-server_0_amd64.deb (--install):
...
如何停止其他脚本?我认为退出命令应该起作用。 https://www.debian.orgian.orgian.orgian.org/debian.org/doc/debian-debian-policy/ ch-Maintainerscripts.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
同意评论中所说的话。
停止安装不是要走的路,而是最大程度地协助用户以正确安装软件包。
为什么要让人们在自动化时手动安装内容?
因此:
debian/Control
文件或
curl
依赖项到debian/control
文件通过使用Arduino-Cli
Agreed with what was said in comments.
Stopping an installation is not the way to go, instead assist the user at the maximum in order to install your package correctly.
Why asking people to install things manually while you can automate it?
Thus:
debian/control
fileOR
curl
dependency to thedebian/control
filearduino-cli
by using