自己动手制作RPM包
0,先安装rpm-build工具包
1,在自己的用户目录创建RPM目录
# mkdir ~/rpm ~/rpm/BUILD ~/rpm/RPMS ~/rpm/RPMS/i386 ~/rpm/RPMS/i686 ~/rpm/RPMS/noarch ~/rpm/SOURCES
2,在用户目录生成一个宏文件
# echo %_topdir ~/rpm > .rpmmacros
3,编写spec文件(这个好像都是从其他例如sample_1.0-src.rpm包中自动生成的)
$ sudo rpm -i wget-1.12-1.i386.rpmBack to top
Other uses for RPM
This brief introduction merely scratches the surface of what's possible with RPM. Although it is most often used to install software and attendant files, you can package most anything, from system scripts to source code to documentation. And as you'll see in the second installment of this series, you can also use RPM to patch source code as well as rebuild and reinstall software. The RPM distribution format is found on many Linux systems and is the preferred method to install binary software on Red Hat and Fedora systems, among others.
If you build it and package it with RPM, they will come.
Resources
Learn
Read all threearticles in this series (developerWorks, January 2010) on the RPM Package Manager.
Read Wikipedia's overview of the RPM Package Manager.
Visit the official RPM site for more information about package management in Linux.
Learn about RPMin Red Hat Linux.
Check out Fedora's RPM Guidelines.
Get the official RPM software guide from Fedora.
Read allof Martin's articles on developerWorks
In the developerWorks Linux zone, find more resources for Linux developers, and scan ourmost popular articles and tutorials.
See all Linux tips and Linux tutorials on developerWorks.
Stay current with developerWorks technical events and Webcasts.Get products and technologies
Download the latest version of thewget
source code from ftp.gnu.org.
Learn more and downloadrpmlint
.
Learn more and download Easy RPM Builder.
With IBM trial software, available for download directly from developerWorks, build your next development project on Linux.Discuss
Get involved in the My developerWorks community. Connect with other developerWorks users while exploring the developer-driven blogs, forums, groups, and wikis.