How To Install libcups2 on Ubuntu 20.04

In this tutorial we learn how to install libcups2 on Ubuntu 20.04. libcups2 is Common UNIX Printing System(tm) - Core library Common UNIX Printing System(tm) - Core library

Introduction

In this tutorial we learn how to install libcups2 on Ubuntu 20.04.

What is libcups2

libcups2 is:

The Common UNIX Printing System (or CUPS(tm)) is a printing system and general replacement for lpd and the like. It supports the Internet Printing Protocol (IPP), and has its own filtering driver model for handling various document types.

This package provides the base shared libraries for CUPS. Task: print-server, ubuntu-desktop-minimal, samba-server, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: libcups2 Architecture: amd64 Version: 2.3.1-9ubuntu1 Multi-Arch: same Priority: optional Section: libs Source: cups Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Printing Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 769 Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.17), libgnutls30 (>= 3.6.9), libgssapi-krb5-2 (>= 1.17), zlib1g (>= 1:1.2.0) Suggests: cups-common Filename: pool/main/c/cups/libcups2_2.3.1-9ubuntu1_amd64.deb Size: 233040 MD5sum: 67a378b7ce9a1c128b2f77be90ccbb4d SHA1: 72e6e29ab3a87ae5bbf82e5835135413e67fe89d SHA256: 112c3c6489cd7f70286c4cd49b014a8b45a231d5ac97f53e0106f9e444d2306d Homepage: https://www.cups.org/ Description-en: Common UNIX Printing System(tm) - Core library The Common UNIX Printing System (or CUPS(tm)) is a printing system and general replacement for lpd and the like. It supports the Internet Printing Protocol (IPP), and has its own filtering driver model for handling various document types.

This package provides the base shared libraries for CUPS. Task: print-server, ubuntu-desktop-minimal, samba-server, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

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

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

sudo apt-get update

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

sudo apt-get -y install libcups2

Install libcups2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcups2

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

sudo aptitude -y install libcups2

How To Uninstall libcups2 on Ubuntu 20.04

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

sudo apt-get remove libcups2

Uninstall libcups2 And Its Dependencies

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

sudo apt-get -y autoremove libcups2

Remove libcups2 Configurations and Data

To remove libcups2 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libcups2

Remove libcups2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcups2

References

Summary

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