Building RPMs

Matthew Newton mcn4 at
Fri Jul 22 15:03:43 CEST 2016

On Fri, Jul 22, 2016 at 01:33:15PM +0100, Phil Mayers wrote:
> On 22/07/16 10:43, Matthew Newton wrote:
> >rpmbuild -bb doesn't "Just Work", and getting the required dev
> >packages on is not really trivial from what I can tell. At least,
> >not as trivial as a single "sudo mk-build-deps -ir debian/control
> Yeah, building RPMs has always sucked.
> You probably won't like this, but... the "best" way to build an SRPM is, in
> my experience, mock. It builds and caches a clean system and then runs
> rpmbuild in it via chroot. It also lets you build for systems other than the
> one you're on, which is handy.

Sounds the same idea as Debian's 'sbuild'. Which similarly builds
in a chroot so you get good clean packages. I've got instructions
for that to go up on the wiki at some point. It's much better if
you can use it or are deploying onto machines other than the one
the packages were built on.

Not sure either is the best for general sysadmins wanting
up-to-date packages on their systems, but I think instructions for
using them should be available where possible. Which reminds me to
update the wiki with sbuild info...



Matthew Newton, Ph.D. <mcn4 at>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at>

More information about the Freeradius-Devel mailing list