Building a source RPM using rpmbuild command
Q. I need to build a source RPM, how do I build it?
A. In order to build a source RPM you need to use rpmbuild command. rpmbuild is used to build both binary and source software packages. A package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages.
You need to use .spec file to build the RPM file. Next type rpmbuild command as follows:
# rpmbuild -ba pakagename.spec
For more information, please refer Maximum RPM book.
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- Download of the day: Intel Threading Building Blocks for multithreaded applications
- Tutorial : Building Web Pages with Python
- How to build and use Linux device drivers on FreeBSD
- Howto build an open source digital entertainment system using MythTV
- Install PHP 5 on Red Hat Enterprise Linux version 4
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: build_rpm, rebuild_rpm_file, rpmbuild_command, rpm_spec_file



Recent Comments
Today ~ 5 Comments
Today ~ 12 Comments
Today ~ 2 Comments
Today ~ 18 Comments
Today ~ 5 Comments