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

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

Introduction

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

What is freeradius-postgresql.x86_64

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

We can use yum to install freeradius-postgresql.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-postgresql.x86_64.

Install freeradius-postgresql.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-postgresql.x86_64 using yum by running the following command:

sudo yum -y install freeradius-postgresql.x86_64

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

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

sudo yum remove freeradius-postgresql.x86_64

freeradius-postgresql.x86_64 Package Contents on Amazon Linux 2

/etc/raddb/mods-config/sql/counter/postgresql
/etc/raddb/mods-config/sql/counter/postgresql/dailycounter.conf
/etc/raddb/mods-config/sql/counter/postgresql/expire_on_login.conf
/etc/raddb/mods-config/sql/counter/postgresql/monthlycounter.conf
/etc/raddb/mods-config/sql/counter/postgresql/noresetcounter.conf
/etc/raddb/mods-config/sql/cui/postgresql
/etc/raddb/mods-config/sql/cui/postgresql/queries.conf
/etc/raddb/mods-config/sql/cui/postgresql/schema.sql
/etc/raddb/mods-config/sql/ippool/postgresql
/etc/raddb/mods-config/sql/ippool/postgresql/queries.conf
/etc/raddb/mods-config/sql/ippool/postgresql/schema.sql
/etc/raddb/mods-config/sql/main/postgresql
/etc/raddb/mods-config/sql/main/postgresql/extras
/etc/raddb/mods-config/sql/main/postgresql/extras/cisco_h323_db_schema.sql
/etc/raddb/mods-config/sql/main/postgresql/extras/update_radacct_group.sql
/etc/raddb/mods-config/sql/main/postgresql/extras/voip-postpaid.conf
/etc/raddb/mods-config/sql/main/postgresql/queries.conf
/etc/raddb/mods-config/sql/main/postgresql/schema.sql
/etc/raddb/mods-config/sql/main/postgresql/setup.sql
/usr/lib64/freeradius/rlm_sql_postgresql.so

References

Summary

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