If this is an easy question please point me in the right direction. I haven't been able to find detailed documentation on how the official CentOS RPMs are built.
I'm trying to setup a clean reproducible build environment for CentOS 7. To verify my environment is correct, I rebuilt the grep RPM from source. I was hoping the output binary included in the RPM would be an exact match, however they are different. Can someone tell me what I need to do to create the correct CentOS environment that can reproduce binaries as delivered with the DVD?
I started with a fresh minimal install of latest CentOS7 from DVD. I added the grep source RPM that matched the version on the DVD and built with rpmbuild. Then I only installed additional RPMs, from the DVD, that are required for rpmbuild to complete. The resulting grep binary is different from the one included on the DVD (built by CentOS).
Built binary does not match the binary delivered with CentOS.
How do I setup a build environment to duplicate a CentOS RPM build?
Re: How do I setup a build environment to duplicate a CentOS RPM build?
Use mock not rpmbuild. And no rpm will ever be identical to the point where it will checksum the same: it contains time sensitive metadata embedded in it - e.g Build Date etc.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke