Technology Insights

Install rpmbuild On CentOS Linux

I have been working on setting up some new CentOS Linux servers for a company I work for and one of the things I need to do is build a more current version of Ruby than what is available in the YUM repositories. To do this I am going to download an updated version of the Ruby Source RPM built for Fedora and then build the RPM’s from that. One of the commands required to build RPM’s is rpmbuild which is provided by the rpm-build RPM package as shown below.

Technology Errors

RPMBuild Error: error: Installed (but unpackaged) file(s) found

It has been a long time since I built an RPM using a packages source so I had to brush up on my knowledge there before attempting to build an RPM package for CentOS today from curl’s source. In the process of building the curl RPM package for CentOS I received an error from rpmbuild stating that there was a rather large list of files that were unpackaged. Below I describe the rpmbuild unpackaged error along with a way to resolve the problem. I would love to hear any feedback people have on RPM building since it is not something I do on a regular basis my knowledge is limited.