How To Install postgresql-upgrade-devel on AlmaLinux 8

In this tutorial we learn how to install postgresql-upgrade-devel in AlmaLinux 8. postgresql-upgrade-devel is Support for build of extensions required for upgrade process

Introduction

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

What is postgresql-upgrade-devel

The postgresql-devel package contains the header files and libraries needed to compile C or C++ applications which are necessary in upgrade process.

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

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

sudo dnf -y install postgresql-upgrade-devel

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

sudo yum -y install postgresql-upgrade-devel

How To Uninstall postgresql-upgrade-devel on AlmaLinux 8

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

sudo dnf remove postgresql-upgrade-devel

References

Summary

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