How To Install libjbig-dev on Ubuntu 18.04

In this tutorial we learn how to install libjbig-dev on Ubuntu 18.04. libjbig-dev is JBIGkit development files

Introduction

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

What is libjbig-dev

libjbig-dev is:

JBIG-KIT provides a portable library of compression and decompression functions with a documented interface that you can include very easily into your image or document processing software.

This package contains the headers for the library.

Please note: There is no statically linked library in this package, and what was previously two libraries with a single common file has been merged into one library (libjbig).

There are three methods to install libjbig-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 libjbig-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 libjbig-dev using apt-get by running the following command:

sudo apt-get -y install libjbig-dev

Install libjbig-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjbig-dev

Install libjbig-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 libjbig-dev using aptitude by running the following command:

sudo aptitude -y install libjbig-dev

How To Uninstall libjbig-dev on Ubuntu 18.04

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

sudo apt-get remove libjbig-dev

Uninstall libjbig-dev And Its Dependencies

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

sudo apt-get -y autoremove libjbig-dev

Remove libjbig-dev Configurations and Data

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

sudo apt-get -y purge libjbig-dev

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

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

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

References

Summary

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