How To Install postgresql-server-devel on AlmaLinux 8

In this tutorial we learn how to install postgresql-server-devel in AlmaLinux 8. postgresql-server-devel is PostgreSQL development header files and libraries

Introduction

In this tutorial we learn how to install postgresql-server-devel on AlmaLinux 8.

What is postgresql-server-devel

The postgresql-server-devel package contains the header files and libraries needed to compile C or C++ applications which will directly interact with a PostgreSQL database management server. It also contains the ecpg Embedded C Postgres preprocessor. You need to install this package if you want to develop applications which will interact with a PostgreSQL server.

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

Install postgresql-server-devel 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 postgresql-server-devel using dnf by running the following command:

sudo dnf -y install postgresql-server-devel

Install postgresql-server-devel 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 postgresql-server-devel using yum by running the following command:

sudo yum -y install postgresql-server-devel

How To Uninstall postgresql-server-devel on AlmaLinux 8

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

sudo dnf remove postgresql-server-devel

References

Summary

In this tutorial we learn how to install postgresql-server-devel on AlmaLinux 8 using yum and dnf.