How To Install lsb-printing on Ubuntu 20.04

In this tutorial we learn how to install lsb-printing on Ubuntu 20.04. lsb-printing is Linux Standard Base Printing package

Introduction

In this tutorial we learn how to install lsb-printing on Ubuntu 20.04.

What is lsb-printing

lsb-printing is:

The Linux Standard Base (http://www.linuxbase.org/) is a standard core system that third-party applications written for Linux can depend upon.

This package provides an implementation of the Linux Standard Base Printing specification for Debian on the Intel x86, Intel ia64 (Itanium), IBM S390, and PowerPC 32-bit architectures with the Linux kernel. Future revisions of the specification and this package may support the LSB on additional architectures and kernels.

The intent of this package is to provide a best current practice way of installing and running LSB packages on Debian GNU/Linux. Its presence does not imply that Debian fully complies with the Linux Standard Base, and should not be construed as a statement that Debian is LSB-compliant.

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

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

sudo apt-get update

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

sudo apt-get -y install lsb-printing

Install lsb-printing Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lsb-printing

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

sudo aptitude -y install lsb-printing

How To Uninstall lsb-printing on Ubuntu 20.04

To uninstall only the lsb-printing package we can use the following command:

sudo apt-get remove lsb-printing

Uninstall lsb-printing And Its Dependencies

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

sudo apt-get -y autoremove lsb-printing

Remove lsb-printing Configurations and Data

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

sudo apt-get -y purge lsb-printing

Remove lsb-printing configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lsb-printing

References

Summary

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