How To Install freeradius-mysql.x86_64 on Amazon Linux 2

In this tutorial we learn how to install freeradius-mysql.x86_64 in Amazon Linux 2. freeradius-mysql.x86_64 is MySQL support for freeradius

Introduction

In this tutorial we learn how to install freeradius-mysql.x86_64 on Amazon Linux 2.

What is freeradius-mysql.x86_64

This plugin provides the MySQL support for the FreeRADIUS server project.

We can use yum to install freeradius-mysql.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install freeradius-mysql.x86_64.

Install freeradius-mysql.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install freeradius-mysql.x86_64 using yum by running the following command:

sudo yum -y install freeradius-mysql.x86_64

How To Uninstall freeradius-mysql.x86_64 on Amazon Linux 2

To uninstall only the freeradius-mysql.x86_64 package we can use the following command:

sudo yum remove freeradius-mysql.x86_64

freeradius-mysql.x86_64 Package Contents on Amazon Linux 2

/etc/raddb/mods-config/sql/counter/mysql
/etc/raddb/mods-config/sql/counter/mysql/dailycounter.conf
/etc/raddb/mods-config/sql/counter/mysql/expire_on_login.conf
/etc/raddb/mods-config/sql/counter/mysql/monthlycounter.conf
/etc/raddb/mods-config/sql/counter/mysql/noresetcounter.conf
/etc/raddb/mods-config/sql/cui/mysql
/etc/raddb/mods-config/sql/cui/mysql/queries.conf
/etc/raddb/mods-config/sql/cui/mysql/schema.sql
/etc/raddb/mods-config/sql/ippool-dhcp/mysql
/etc/raddb/mods-config/sql/ippool-dhcp/mysql/queries.conf
/etc/raddb/mods-config/sql/ippool-dhcp/mysql/schema.sql
/etc/raddb/mods-config/sql/ippool/mysql
/etc/raddb/mods-config/sql/ippool/mysql/queries.conf
/etc/raddb/mods-config/sql/ippool/mysql/schema.sql
/etc/raddb/mods-config/sql/main/mysql
/etc/raddb/mods-config/sql/main/mysql/extras
/etc/raddb/mods-config/sql/main/mysql/extras/wimax
/etc/raddb/mods-config/sql/main/mysql/extras/wimax/queries.conf
/etc/raddb/mods-config/sql/main/mysql/extras/wimax/schema.sql
/etc/raddb/mods-config/sql/main/mysql/queries.conf
/etc/raddb/mods-config/sql/main/mysql/schema.sql
/etc/raddb/mods-config/sql/main/mysql/setup.sql
/etc/raddb/mods-config/sql/main/ndb
/etc/raddb/mods-config/sql/main/ndb/README
/etc/raddb/mods-config/sql/main/ndb/schema.sql
/etc/raddb/mods-config/sql/main/ndb/setup.sql
/usr/lib64/freeradius/rlm_sql_mysql.so

References

Summary

In this tutorial we learn how to install freeradius-mysql.x86_64 on Amazon Linux 2 using yum.