How To Create A FreeRADIUS 2.1.1-6 RPM Package On CentOS 5.2

This is just a short tutorial showing how to create an RPM version of FreeRADIUS 2.1.1-6 on CentOS 5.2. This version of FreeRADIUS is not yet included in the CentOS 5 repositories.


Getting FreeRADIUS 2.1.1-6 SRPM from Koji

Download the SRPM version from here:

Now install the srpm software:

rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm
cd /usr/src/redhat/RPMS/SPECS
rpmbuild -bb freeradius.spec

Make Sure You Have the following dependencies installed:

beecrypt-devel, sqlite-devel, unixODBC, unixODBC-devel, python-devel, pam-devel, elfutils-libelf-devel, elfutils-libelf-devel-static, rpm-devel, elfutils-devel, elfutils-devel-static, net-snmp-devel, mysql, cyrus-sasl-devel, mysql-devel, openldap-devel, gdbm-devel, libtool-ltdl-devel, postgresql, postgresql-devel

Go to the i386 directory:

cd /usr/src/redhat/RPMS/i386


Installing the binary packages

rpm -Uvh freeradius-libs-2.1.1-6.i386.rpm
rpm -Uvh freeradius-2.1.1-6.i386.rpm
rpm -Uvh freeradius-utils-2.1.1-6.i386.rpm
rpm -Uvh freeradius-mysql-2.1.1-6.i386.rpm

Enjoy your FreeRADIUS 2.1.1-6 installation.

Share this page:

Suggested articles

5 Comment(s)

Add comment


By: Anonymous

We followed the instructions on a CentOS 5.3 box but after running

"rpm -Uvh freeradius-2.1.1-6.fc10.src.rpm"

we had to

"cd /usr/src/redhat/SPECS"

to get to the freeradius.spec file.

When we ran

"rpm build -bb freeradius.spec"

it created 12 rpms instead of the 4 that are listed in the howto. It does not explain if we are supposed to do anything with the other rpms.

The information is not useable.

By: Anonymous

Dear, Mr Incomplete.

You, sir, are in for a big suprize if you are new to the linux world, and you expect things to go EXACTLY as planned. So there was a typo in the posting, BFD, that does ABSOLUTELY NOTHING to the value of the post. If you would have simply ran "updatedb" then "locate freeradius.spec" you would have found it.  And it created 12 RPMS instead of 4! Oh no! You ungreatful jackass, all that means is you can choose to install the other packages _IF_ you need those options. The aricle and information is extremely useful, even if they didnt hold your freaking hand the whole time. Use your own head a little, and you would have been fine.

By: Anonymous

chill the hell out. Everyone has to start somewhere and sometime. 

 Liked the How-to. 

By: Anonymous

Thank you for providing a great example of the bone-headedness of some linux users.

 When the instructions aren't right, that would be a problem.  Linux being a world of powerful command-line, a single character typo can be a big deal, right?  Much less part of the commands being missing.


"No man is completely worthless, he can always serve as a bad example".

By: Aaron

This works great.   I actually just used this to install freeradius 2.1.10.

Needed to install a few dependencies with yum before the rpmbuild command; but the rpmbuild command shows you what is missing :)

 Got it running on CentOS 5.5 x64_86, no problems so far.

 If I wold have followed the freeradius RedHat build guide I would still be here working on it (2 hours on it)...