因为有这方面的需求,所以前期先搜索一下。
搜索关键字:
- linux build rpm from source code
- linux build rpm from source code site:stackoverflow.com
- 从源码编译制作rpm
- 包含源码的rpm包的安装和rpm包的制作
参考链接:
- Building RPMs
- Packaging software with RPM, Part 1: Building and distributing packages
- How to create an RPM package – FedoraProject
- https://access.redhat.com/sites/default/files/attachments/rpm_building_howto.pdf
- http://www.ceylonlinux.com/pdf/rpm_howto.pdf
- http://www.thegeekstuff.com/2015/02/rpm-build-package-example/
- zh/HowTos/SetupRpmBuildEnvironment – CentOS Wiki
- =
- http://stackoverflow.com/questions/1841328/building-rpm
- http://stackoverflow.com/questions/2324933/creating-python-rpm
- =
- Windows 到 Linux 之旅: 第 9 部分. 安装软件
- 用 RPM 打包软件,第 1 部分
- 创建 Debian Linux 软件包
- =
- 一堂课玩转rpm包的制作
- =
- LFS——Linux from Scratch && 源码编译和rpm编译比较
- =
- MySQL 5.5 三大安装方式:【二进制、源代码编译 和 RPM 包】 安装步骤及优缺点比较
==未完待续==
《 “Linux下由源码编译制作rpm包” 》 有 3 条评论
根据.spec文件创建RPM包
`rpmbuild -ba SPECS/bash.spec
`
https://fedoraproject.org/wiki/How_to_create_an_RPM_package#Create_binary_RPMS_from_the_SPEC_file
https://www.ibm.com/developerworks/cn/linux/l-rpm/
http://hlee.iteye.com/blog/343499
http://stackoverflow.com/questions/880227/what-is-the-minimum-i-have-to-do-to-create-an-rpm-file
https://wiki.centos.org/HowTos/RebuildSRPM
项目 audisp-json-2.1.0 中的 Makefile 提供了 install/uninstall/clean 的功能,同时也提供了利用 fpm 将源码打包成 rpm/deb 的功能(只是简单将audisp-json/au-json.conf/audisp-json.conf这3个文件打包放在一起而已,并不是从头开始编译然后安装),但是 fpm 的使用没那么方便,因为它不是默认安装的,不过有机会的话可以试试。
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-creating-rpms.html
https://www.digitalocean.com/community/tutorials/how-to-use-fpm-to-easily-create-packages-in-multiple-formats
https://github.com/jordansissel/fpm
http://fpm.readthedocs.io/en/latest/intro.html
https://fedoraproject.org/wiki/How_to_create_an_RPM_package
https://access.redhat.com/articles/216643
http://www.tldp.org/HOWTO/RPM-HOWTO/build.html
http://www.thegeekstuff.com/2015/02/rpm-build-package-example/
https://stackoverflow.com/questions/880227/what-is-the-minimum-i-have-to-do-to-create-an-rpm-file
一堂课玩转rpm包的制作
http://blog.chinaunix.net/uid-23069658-id-3944462.html