How To Install openjpeg2 on Rocky Linux 8

In this tutorial we learn how to install openjpeg2 on Rocky Linux 8. openjpeg2 is C-Library for JPEG 2000

Introduction

In this tutorial we learn how to install openjpeg2 on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install openjpeg2.

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

sudo dnf -y install openjpeg2

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

sudo yum -y install openjpeg2

How To Uninstall openjpeg2 on Rocky Linux 8

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

sudo dnf remove openjpeg2

openjpeg2 Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/2fb3e7c94f952b8a59c654d6bc3640f7f38127
/usr/lib64/libopenjp2.so.2.3.1
/usr/lib64/libopenjp2.so.7
/usr/share/doc/openjpeg2
/usr/share/doc/openjpeg2/AUTHORS.md
/usr/share/doc/openjpeg2/NEWS.md
/usr/share/doc/openjpeg2/README.md
/usr/share/doc/openjpeg2/THANKS.md
/usr/share/licenses/openjpeg2
/usr/share/licenses/openjpeg2/LICENSE
/usr/share/man/man3/libopenjp2.3.gz
/usr/lib/.build-id
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/310a96a8733d124e273285da1dd94d5783f1b5
/usr/lib/libopenjp2.so.2.3.1
/usr/lib/libopenjp2.so.7
/usr/share/doc/openjpeg2
/usr/share/doc/openjpeg2/AUTHORS.md
/usr/share/doc/openjpeg2/NEWS.md
/usr/share/doc/openjpeg2/README.md
/usr/share/doc/openjpeg2/THANKS.md
/usr/share/licenses/openjpeg2
/usr/share/licenses/openjpeg2/LICENSE
/usr/share/man/man3/libopenjp2.3.gz

References

Summary

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