How To Install libjxr-dev on Ubuntu 18.04

In this tutorial we learn how to install libjxr-dev on Ubuntu 18.04. libjxr-dev is JPEG-XR lib - dev files

Introduction

In this tutorial we learn how to install libjxr-dev on Ubuntu 18.04.

What is libjxr-dev

libjxr-dev is:

JPEG XR is an approved ISO/IEC International standard (its official designation is ISO/IEC 29199-2).

JPEG XR started its life in Microsoft Research. It publicly first appeared as the HD Photo format in Windows Vista.

For web developers, JPEG XR has a large number of interesting features, see the table below. Some of these are big advantages over other image formats like JPEG, PNG, OpenEXR, and TIFF.

  • Better Compression (40% smaller than JPEG)
  • Lossless Mode (better compression than PNG)
  • Alpha Channel (compress color lossy and alpha losslessly)
  • Extended Bitdepth (supports 8-, 16-, and 32-bit/channel)
  • Progressive Decode
  • Advanced Decoding Features (tile-based layout, for efficient region-of-interest access.)

Provide the development files

There are three methods to install libjxr-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libjxr-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libjxr-dev using apt-get by running the following command:

sudo apt-get -y install libjxr-dev

Install libjxr-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjxr-dev using apt by running the following command:

sudo apt -y install libjxr-dev

Install libjxr-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libjxr-dev using aptitude by running the following command:

sudo aptitude -y install libjxr-dev

How To Uninstall libjxr-dev on Ubuntu 18.04

To uninstall only the libjxr-dev package we can use the following command:

sudo apt-get remove libjxr-dev

Uninstall libjxr-dev And Its Dependencies

To uninstall libjxr-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjxr-dev

Remove libjxr-dev Configurations and Data

To remove libjxr-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjxr-dev

Remove libjxr-dev configuration, data, and all of its dependencies

We can use the following command to remove libjxr-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjxr-dev

References

Summary

In this tutorial we learn how to install libjxr-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.