How To Install libjpeg-turbo-utils on CentOS 7

In this tutorial we learn how to install libjpeg-turbo-utils on CentOS 7. libjpeg-turbo-utils is Utilities for manipulating JPEG images

Introduction

In this tutorial we learn how to install libjpeg-turbo-utils on CentOS 7.

What is libjpeg-turbo-utils

The libjpeg-turbo-utils package contains simple client programs for accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format. Djpeg decompresses a JPEG file into a regular image file. Jpegtran can perform various useful transformations on JPEG files. Rdjpgcom displays any text comments included in a JPEG file. Wrjpgcom inserts text comments into a JPEG file.

We can use yum or dnf to install libjpeg-turbo-utils on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libjpeg-turbo-utils.

Install libjpeg-turbo-utils on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libjpeg-turbo-utils using yum by running the following command:

sudo yum -y install libjpeg-turbo-utils

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

sudo dnf -y install libjpeg-turbo-utils

How To Uninstall libjpeg-turbo-utils on CentOS 7

To uninstall only the libjpeg-turbo-utils package we can use the following command:

sudo dnf remove libjpeg-turbo-utils

References

Summary

In this tutorial we learn how to install libjpeg-turbo-utils on CentOS 7 using yum and dnf.