How To Install freeradius-postgresql on Rocky Linux 8

In this tutorial we learn how to install freeradius-postgresql on Rocky Linux 8. freeradius-postgresql is Postgresql support for freeradius

Introduction

In this tutorial we learn how to install freeradius-postgresql on Rocky Linux 8.

What is freeradius-postgresql

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

We can use yum or dnf to install freeradius-postgresql on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install freeradius-postgresql.

Install freeradius-postgresql on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install freeradius-postgresql using dnf by running the following command:

sudo dnf -y install freeradius-postgresql

Install freeradius-postgresql on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install freeradius-postgresql

How To Uninstall freeradius-postgresql on Rocky Linux 8

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

sudo dnf remove freeradius-postgresql

freeradius-postgresql Package Contents on Rocky Linux 8

/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/procedure.sql
/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/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/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/da37ffeed5b090abc750e1fc57e387025714da
/usr/lib64/freeradius/rlm_sql_postgresql.so

References

Summary

In this tutorial we learn how to install freeradius-postgresql on Rocky Linux 8 using yum and dnf.