rpm打包学习
参考
- http://rpm.org/documentation.html
- RPM Reference Manual
- Spec file format
- RPM Packaging Guide
- https://rpm-guide.readthedocs.io/en/latest/rpm-guide.html
- All you have to know about RPM
- https://github.com/rpm-software-management/rpm
- https://github.com/rpm-software-management/dnf
- https://rpm-software-management.github.io/rpm/man/
- Linux软件包管理— rpm软件包查询
- rpm 打包及其命令
- RPM包制作之Spec文件详解
- rpmbuild SPEC文件的语法
- 掌握spec只需读这一篇文章,CentOS、RedHat、SUSE粉的福利来了
rpm包查询
宏的用法
rpm工具使用
rpmspec工具使用
-
常见用法
- 列出spec中最终生成的所有rpm包
$ rpmspec -q rpm.spec rpm-4.11.3-3.fc20.x86_64 rpm-libs-4.11.3-3.fc20.x86_64 rpm-build-libs-4.11.3-3.fc20.x86_64
- 解析spec,把宏展开
$ rpmspec -P rpm.spec Summary: The RPM package management system Name: rpm Version: 4.14.0
- 按指定格式显示查询结果
$ rpmspec -q --qf "%{name}: %{summary}\n" rpm.spec rpm: The RPM package management system rpm-libs: Libraries for manipulating RPM packages rpm-build-libs: Libraries for building and signing RPM packages ..
安装依赖
yum-builddep --nobest -y --spec <spec file>
创建YUM源
ISO构建
本文来自博客园,作者:dolinux,未经同意,禁止转载