[英]Can hardware requirements be included in RPM dependency information? HOW?
I want to publish my own RPM package, but it must run on some special hardware platform, I need to add some hardware requirements information to YUM repo or RPM package. 我想发布自己的RPM软件包,但是它必须在某些特殊的硬件平台上运行,我需要在YUM repo或RPM软件包中添加一些硬件要求信息。 how? 怎么样?
You can say for which platform is the package intended using tag ExclusiveArch
, however it just state the architecture of CPU. 您可以使用标签ExclusiveArch
来说明该软件包打算用于哪个平台,但是它仅说明了CPU的体系结构。 You cannot enforce other HW parameters (eg presence of some card, cpu flag or some storage). 您不能强制执行其他硬件参数(例如,存在某些卡,CPU标志或某些存储设备)。
You can however do those checks in %pre section and fail if the HW is not present and therefore effectively blocking the installation (unless admin pass --no-script to rpm). 但是,您可以在%pre节中进行这些检查,如果不存在硬件,则失败,因此有效地阻止了安装(除非admin将--no-script传递给rpm)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.