How To Install openjpeg2.x86_64 on Amazon Linux 2

In this tutorial we learn how to install openjpeg2.x86_64 in Amazon Linux 2. openjpeg2.x86_64 is C-Library for JPEG 2000

Introduction

In this tutorial we learn how to install openjpeg2.x86_64 on Amazon Linux 2.

What is openjpeg2.x86_64

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

Install openjpeg2.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install openjpeg2.x86_64

How To Uninstall openjpeg2.x86_64 on Amazon Linux 2

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

sudo yum remove openjpeg2.x86_64

openjpeg2.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libopenjp2.so.2.4.0
/usr/lib64/libopenjp2.so.7
/usr/share/doc/openjpeg2-2.4.0
/usr/share/doc/openjpeg2-2.4.0/AUTHORS.md
/usr/share/doc/openjpeg2-2.4.0/NEWS.md
/usr/share/doc/openjpeg2-2.4.0/README.md
/usr/share/doc/openjpeg2-2.4.0/THANKS.md
/usr/share/licenses/openjpeg2-2.4.0
/usr/share/licenses/openjpeg2-2.4.0/LICENSE
/usr/share/man/man3/libopenjp2.3.gz

References

Summary

In this tutorial we learn how to install openjpeg2.x86_64 on Amazon Linux 2 using yum.