How To Install libtiff-dev on Ubuntu 20.04

In this tutorial we learn how to install libtiff-dev on Ubuntu 20.04. libtiff-dev is Tag Image File Format library (TIFF), development files Tag Image File Format library (TIFF), development files

Introduction

In this tutorial we learn how to install libtiff-dev on Ubuntu 20.04.

What is libtiff-dev

libtiff-dev is:

libtiff is a library providing support for the Tag Image File Format (TIFF), a widely used format for storing image data. This package includes the development files, static library, and header files.

Package: libtiff-dev Architecture: amd64 Version: 4.1.0+git191117-2build1 Multi-Arch: same Priority: optional Section: oldlibs Source: tiff Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Laszlo Boszormenyi (GCS) [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1046 Depends: libc6-dev | libc-dev, libjbig-dev, libjpeg-dev, liblzma-dev, libtiff5 (= 4.1.0+git191117-2build1), libtiffxx5 (= 4.1.0+git191117-2build1), zlib1g-dev Breaks: libtiff4-dev (« 4.0.3-6~), libtiff5-alt-dev (« 4.0.3-6~), libtiff5-dev (« 4.0.10-1~) Replaces: libtiff4-dev (« 4.0.3-6~), libtiff5-alt-dev (« 4.0.3-6~), libtiff5-dev (« 4.0.10-1~) Filename: pool/main/t/tiff/libtiff-dev_4.1.0+git191117-2build1_amd64.deb Size: 284464 MD5sum: 211ed1a5f707baaf5ef254b4019fd573 SHA1: 33bfa5301e7873d52f417a069ef26427e9928287 SHA256: 1292b14967d8e4ab94cc2095fb11bec9768e17ee5c65918326b08e3709ff192e Homepage: https://libtiff.gitlab.io/libtiff/ Description-en: Tag Image File Format library (TIFF), development files libtiff is a library providing support for the Tag Image File Format (TIFF), a widely used format for storing image data. This package includes the development files, static library, and header files.

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

sudo apt-get -y install libtiff-dev

Install libtiff-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtiff-dev

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

sudo aptitude -y install libtiff-dev

How To Uninstall libtiff-dev on Ubuntu 20.04

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

sudo apt-get remove libtiff-dev

Uninstall libtiff-dev And Its Dependencies

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

sudo apt-get -y autoremove libtiff-dev

Remove libtiff-dev Configurations and Data

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

sudo apt-get -y purge libtiff-dev

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

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

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

References

Summary

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