How To Install openjpeg2-devel on Rocky Linux 8

In this tutorial we learn how to install openjpeg2-devel on Rocky Linux 8. openjpeg2-devel is Development files for OpenJPEG 2

Introduction

In this tutorial we learn how to install openjpeg2-devel on Rocky Linux 8.

What is openjpeg2-devel

The openjpeg2-devel package contains libraries and header files for developing applications that use OpenJPEG 2.

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

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

sudo dnf -y install openjpeg2-devel

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

sudo yum -y install openjpeg2-devel

How To Uninstall openjpeg2-devel on Rocky Linux 8

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

sudo dnf remove openjpeg2-devel

openjpeg2-devel Package Contents on Rocky Linux 8

/usr/include/openjpeg-2.3
/usr/include/openjpeg-2.3/openjpeg.h
/usr/include/openjpeg-2.3/opj_config.h
/usr/include/openjpeg-2.3/opj_stdint.h
/usr/lib/libopenjp2.so
/usr/lib/openjpeg-2.3
/usr/lib/openjpeg-2.3/OpenJPEGConfig.cmake
/usr/lib/openjpeg-2.3/OpenJPEGTargets-relwithdebinfo.cmake
/usr/lib/openjpeg-2.3/OpenJPEGTargets.cmake
/usr/lib/pkgconfig/libopenjp2.pc
/usr/include/openjpeg-2.3
/usr/include/openjpeg-2.3/openjpeg.h
/usr/include/openjpeg-2.3/opj_config.h
/usr/include/openjpeg-2.3/opj_stdint.h
/usr/lib64/libopenjp2.so
/usr/lib64/openjpeg-2.3
/usr/lib64/openjpeg-2.3/OpenJPEGConfig.cmake
/usr/lib64/openjpeg-2.3/OpenJPEGTargets-relwithdebinfo.cmake
/usr/lib64/openjpeg-2.3/OpenJPEGTargets.cmake
/usr/lib64/pkgconfig/libopenjp2.pc

References

Summary

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