How To Install foomatic-db-engine on Ubuntu 18.04

In this tutorial we learn how to install foomatic-db-engine on Ubuntu 18.04. foomatic-db-engine is OpenPrinting printer support - programs

Introduction

In this tutorial we learn how to install foomatic-db-engine on Ubuntu 18.04.

What is foomatic-db-engine

foomatic-db-engine is:

Foomatic is a printing system designed to make it easier to set up common printers for use with Debian (and other operating systems). It provides the “glue” between a print spooler (like CUPS or lpr) and your actual printer, by telling your computer how to process files sent to the printer.

This package contains the architecture-dependent programs needed to set up and maintain the foomatic system. You will also need one or more database packages. The foomatic-db package includes drivers for most common printers using Ghostscript as the print processor, as well as some common glue code used in other filter systems.

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

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

sudo apt-get update

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

sudo apt-get -y install foomatic-db-engine

Install foomatic-db-engine Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install foomatic-db-engine using apt by running the following command:

sudo apt -y install foomatic-db-engine

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

sudo aptitude -y install foomatic-db-engine

How To Uninstall foomatic-db-engine on Ubuntu 18.04

To uninstall only the foomatic-db-engine package we can use the following command:

sudo apt-get remove foomatic-db-engine

Uninstall foomatic-db-engine And Its Dependencies

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

sudo apt-get -y autoremove foomatic-db-engine

Remove foomatic-db-engine Configurations and Data

To remove foomatic-db-engine configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge foomatic-db-engine

Remove foomatic-db-engine configuration, data, and all of its dependencies

We can use the following command to remove foomatic-db-engine configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge foomatic-db-engine

References

Summary

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