How To Install openjpeg2 on AlmaLinux 8

In this tutorial we learn how to install openjpeg2 in AlmaLinux 8. openjpeg2 is C-Library for JPEG 2000

Introduction

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

What is openjpeg2

The OpenJPEG library is an open-source JPEG 2000 library developed in order to promote the use of JPEG 2000. This package contains * JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance). * JP2 (JPEG 2000 standard Part 2 - Handling of JP2 boxes and extended multiple component transforms for multispectral and hyperspectral imagery)

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

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

sudo dnf -y install openjpeg2

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

sudo yum -y install openjpeg2

How To Uninstall openjpeg2 on AlmaLinux 8

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

sudo dnf remove openjpeg2

References

Summary

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