有没有办法从 rpm 包中提取规范文件(我只有 RPM 文件)
不是由
rpm --scripts -qp my-great-app-1.1.2.rpm
(此语法不获取规范文件,仅从 rpm 获取脚本)
最佳答案
安装 rpmrebuild 并“提取”(实际上是重新创建)您的 rpm 文件或您已经安装的包的规范文件。
例子:
rpmrebuild --package --notest-install -e oracle-instantclient-basic-10.2.0.4-1.x86_64.rpm
rpmrebuild -s hercules.spec hercules
https://stackoverflow.com/questions/5613954/