如何定义“取决于”?对于正在运行的内核
软件包 A 依赖于软件包 B-kmod,并且 B-kmod 有多个变体。像 B-kmod--{generic,pae-generic} 等,而 B-kmod 又依赖于相同风格的 linux-image。
我希望 A 依赖于 B-kmod-$(uname -r)。如何在控制文件中表达这一点?
package A depends on package B-kmod and B-kmod has several variants. like B-kmod--{generic,pae-generic} etc. and in turn B-kmod depends on linux-image of the same flavor.
i'd like A to have depends on B-kmod-$(uname -r). how to express this in control file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的意思是希望 A 依赖于正在安装的内核模块,该模块与安装 A 时运行的内核版本相匹配,那绝对是不可能的。作为替代方案,最好的选择是在安装前或安装后脚本期间检查所需功能的可用性,如果不存在则安装失败。您必须记住:
If you mean that you want A to depend on a kernel module being installed matching the kernel version of the kernel running at the time that A is installed, that is definitely impossible. Your best bet as an alternative is to check for the availability of the features you require during the preinst or postinst scripts and fail the install if they are not present. You must keep in mind that: