How To Install openjpeg on Fedora 34

openjpeg is JPEG 2000 command line tools

Introduction

In this tutorial we learn how to install openjpeg on Fedora 34.

What is openjpeg

OpenJPEG is an open-source JPEG 2000 codec written in C. It has been developed in order to promote the use of JPEG 2000, the new still-image compression standard from the Joint Photographic Experts Group (JPEG).

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

Install openjpeg on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install openjpeg

Install openjpeg on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install openjpeg

How To Uninstall openjpeg on Fedora 34

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

sudo dnf remove openjpeg

openjpeg Package Contents on Fedora 34

/usr/bin/extract_j2k_from_mj2
/usr/bin/frames_to_mj2
/usr/bin/image_to_j2k
/usr/bin/j2k_dump
/usr/bin/j2k_to_image
/usr/bin/mj2_to_frames
/usr/bin/wrap_j2k_in_mj2
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/4b71bacb3baa73f5762342137f6975920d7a54
/usr/lib/.build-id/14
/usr/lib/.build-id/14/1539121df2e77adc0acb37e53083b15da17004
/usr/lib/.build-id/16
/usr/lib/.build-id/16/472b00c62adf8ab14c4ac1ee299e4674831b79
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/b6b0a8931318676b79f60b82b0f7e850b0ce02
/usr/lib/.build-id/72
/usr/lib/.build-id/72/5acaa4a41cb31c627b02a4637cf55e5f4fef21
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/6330e1a17251e4edea124318dbdbb6a686ae31
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/56fe653ffcdddd9e17c74e94d933879bc85c34
/usr/share/man/man1/image_to_j2k.1.gz
/usr/share/man/man1/j2k_dump.1.gz
/usr/share/man/man1/j2k_to_image.1.gz

References

Summary

In this tutorial we learn how to install openjpeg on Fedora 34 using yum and dnf.