How To Install unixODBC on AlmaLinux 8

In this tutorial we learn how to install unixODBC in AlmaLinux 8. unixODBC is A complete ODBC driver manager for Linux

Introduction

In this tutorial we learn how to install unixODBC on AlmaLinux 8.

What is unixODBC

Install unixODBC if you want to access databases through ODBC. You will also need the mariadb-connector-odbc package if you want to access a MySQL or MariaDB database, and/or the postgresql-odbc package for PostgreSQL.

We can use yum or dnf to install unixODBC on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install unixODBC.

Install unixODBC on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install unixODBC

Install unixODBC on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install unixODBC using yum by running the following command:

sudo yum -y install unixODBC

How To Uninstall unixODBC on AlmaLinux 8

To uninstall only the unixODBC package we can use the following command:

sudo dnf remove unixODBC

References

Summary

In this tutorial we learn how to install unixODBC on AlmaLinux 8 using yum and dnf.