How To Install libgutenprint2 on Ubuntu 18.04

In this tutorial we learn how to install libgutenprint2 on Ubuntu 18.04. libgutenprint2 is runtime for the Gutenprint printer driver library

Introduction

In this tutorial we learn how to install libgutenprint2 on Ubuntu 18.04.

What is libgutenprint2

libgutenprint2 is:

This package includes the Gutenprint shared library, needed to run programs using Gutenprint drivers.

Gutenprint is the print facility for the GIMP, and in addition a suite of drivers that may be used with common UNIX spooling systems using GhostScript or CUPS. These drivers provide printing quality for UNIX/Linux on a par with proprietary vendor-supplied drivers in many cases, and can be used for many of the most demanding printing tasks. Gutenprint was formerly known as Gimp-Print.

There are three methods to install libgutenprint2 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 libgutenprint2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libgutenprint2

Install libgutenprint2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgutenprint2 using apt by running the following command:

sudo apt -y install libgutenprint2

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

sudo aptitude -y install libgutenprint2

How To Uninstall libgutenprint2 on Ubuntu 18.04

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

sudo apt-get remove libgutenprint2

Uninstall libgutenprint2 And Its Dependencies

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

sudo apt-get -y autoremove libgutenprint2

Remove libgutenprint2 Configurations and Data

To remove libgutenprint2 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgutenprint2

Remove libgutenprint2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgutenprint2

References

Summary

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