Building RPM’s – building from tarballs



Again – I’m NOT an expert on the subject, but have had some success with building rpm’s from either src.rpms (covered last time) and building from tarballs… This entry will talk about the simplest kind of rpm build from tarballs. This is a situation where the developer’s in their great foresight have actually got a spec file in the tarball (and it’s kept current).


I was looking at openvpn the other night. I haven’t really worked with the new 2.x series, I had previously worked with 1.5 On seeing 2.0.5 released I looked at downloading and saw a note on building an rpm from the tarball download. It is DEAD easy…

Instead of the rpm –rebuild that we used last time, for this job we need rpmbuild

$rpmbuild -tb /path/to/openvpn.tar.gz

Once again, read directions… For instance, rpmbuild told me I needed pam-devel to rebuild this package… so I became root and did urpmi pam-devel (which actually was libpam0-devel), after that things compiled just fine. (There is a list of other requires on their website.) If there are problems with the spec file, you can extract it and make changes and specify the new specfile instead of the included one. I didn’t run into this problem with openvpn, but have with other packages. Also, rpmbuild -tb tells it to compile from tarball and build a binary rpm, you could build a src.rpm with rpmbuild -ts or both src and binary rpms with rpmbuild -ta.

Personally I like having the src.rpm’s around for when I upgrade to a new release of the distribution or if I decide to try and build for an older release. It’s probably pack-rat-ism, but just a habit I’ve got in.

Related Posts

Blog Traffic Exchange Related Posts
  • Building RPM's from Source RPMs Let me start by saying I am FAR from being an expert on the subject of building rpm's... RPM's are binary packages for use in red-hat based distributions. They are used (*in my case on Mandriva) with urpmi to install. Urpmi is a "wrapper" around the rpm utility that figures......
  • A closer look at x11vnc I've got to say, one of the things I really like about linux are the myriad of options for remotely administering a system. SSH is the one I use the most, but for the graphical you have x (especially on the LAN), nxserver (which is a compressed and optionally encrypted......
  • Frustrated with Mandriva Club mirror finder It seems like I go through this every time I have to search for an SRPM to rebuild... search at rpms.mandrivaclub.com then prompted to login - login... oops wrong password. Login again stranded at main club page..... ok - downloads.... mirror finder. First - there's no way in the mirror......
Blog Traffic Exchange Related Websites
  • Building Wealth Using Dividend Paying Stocks As you know from the title of this blog, paying off debt (our mortgage) is our number one mission these days. However, a close secondary mission is to build wealth. Our wealth-building strategy is mostly centered around the accumulation of stock in solid, dividend-paying companies with a long history of......
  • Link Building Strategies To Get Your Site Going You have to know that link building for a website will bring much more web traffic to a website from the sites that are linked to it as well as from search engines as your popularity increases. When you look at the amount of links going into websites that are......
  • Technorati Tracks Blog Traffic Exchange Effect Technorati is a online website community that is focused specifically on weblogs, and it can be extremely beneficial to register your blog with Technorati. Knowing how you can benefit from everything that Technorati has to offer is an important first step in getting the most out of your web presence.......
PDF24    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site