How To Install openjpeg2 on CentOS 7

In this tutorial we learn how to install openjpeg2 on CentOS 7. openjpeg2 is C-Library for JPEG 2000

Introduction

In this tutorial we learn how to install openjpeg2 on CentOS 7.

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) 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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install openjpeg2.

Install openjpeg2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install openjpeg2 using yum by running the following command:

sudo yum -y install openjpeg2

Install openjpeg2 on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install openjpeg2 using dnf by running the following command:

sudo dnf -y install openjpeg2

How To Uninstall openjpeg2 on CentOS 7

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 CentOS 7 using yum and dnf.