centos - 如何在打包 RPM 时添加要安装的必备包与 RPM 安装
问题描述
我正在创建一个依赖于 nss 工具的 RPM 包(ex test.RPM)。因为我的 test.RPM 应用程序将 CA 证书添加到 Chromum\firefox 浏览器以信任我的自签名证书。所以我添加了
yum install nss-tools in the %prep section of the spec file.
在安装 test.RPM(yum install test.rpm) 时会引发错误
Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum
我知道原因,yum 已经被测试包锁定了。
任何人都可以建议如何在打包 RPM 时添加要与 RPM 安装一起安装的先决条件包。
解决方案
Requires: nss-tool
推荐阅读
- ios - 使用 RxSwift 更新 UIButton 标题并相应地选择操作
- asp.net-mvc - 如何使用 chart.js 根据用户输入创建图表
- node.js - 节点评估脚本没有按预期工作
- python-3.x - 如何解决赋值前引用的局部变量并正确返回模板中的表单数据?
- rest - rest api 嵌套结构怎么表达?
- angular - Angular:div ngIf* 中的条件自定义管道
- python - 船舶到海岸线的距离(以海里为单位)
- apache-flink - 如果我的 Flink 应用程序需要高并行接收器,最佳实践是什么?
- selenium - Selenium 不支持的命令扩展问题
- javascript - d3液态水图从d3v3到v4的转换