How To Install libapt-pkg-doc on Ubuntu 20.04

In this tutorial we learn how to install libapt-pkg-doc on Ubuntu 20.04. libapt-pkg-doc is documentation for APT development documentation for APT development documentation for APT development

Introduction

In this tutorial we learn how to install libapt-pkg-doc on Ubuntu 20.04.

What is libapt-pkg-doc

libapt-pkg-doc is:

This package contains documentation for development of the APT Debian package manipulation program and its libraries.

This includes the source code documentation generated by doxygen in html format.

Package: libapt-pkg-doc Architecture: all Version: 2.0.2ubuntu0.2 Priority: optional Section: doc Source: apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 14824 Filename: pool/main/a/apt/libapt-pkg-doc_2.0.2ubuntu0.2_all.deb Size: 807580 MD5sum: 0588131564dc05192eaab86683d13a94 SHA1: 5a32309f5491d3eec644cbcfc56cb5d0501e8d59 SHA256: 70575cc49f26489fc0853617b40d6111874da11db432c45c2479db328a2f257e SHA512: bf7229f0a59935ba16a96afe5be4f6477d7ed0109de62636a89cb591a29d6f8293e77a796721ca72c5da56ba167760b9ea9530cc0aa3485ca3dc225147b5d94c Description-en: documentation for APT development This package contains documentation for development of the APT Debian package manipulation program and its libraries.

This includes the source code documentation generated by doxygen in html format.

Package: libapt-pkg-doc Architecture: all Version: 2.0.2 Priority: optional Section: doc Source: apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 14809 Filename: pool/main/a/apt/libapt-pkg-doc_2.0.2_all.deb Size: 808124 MD5sum: 4b47822790b2c5da71734006bce7b461 SHA1: a0517b17a5b7907a23eb6cf5318d94180a4c420a SHA256: 39ad340b9d39ac218b6958465ba6f8075fd9126b0e3916076fb98be934ef5780 Description-en: documentation for APT development This package contains documentation for development of the APT Debian package manipulation program and its libraries.

This includes the source code documentation generated by doxygen in html format.

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

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

sudo apt-get update

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

sudo apt-get -y install libapt-pkg-doc

Install libapt-pkg-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libapt-pkg-doc using apt by running the following command:

sudo apt -y install libapt-pkg-doc

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

sudo aptitude -y install libapt-pkg-doc

How To Uninstall libapt-pkg-doc on Ubuntu 20.04

To uninstall only the libapt-pkg-doc package we can use the following command:

sudo apt-get remove libapt-pkg-doc

Uninstall libapt-pkg-doc And Its Dependencies

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

sudo apt-get -y autoremove libapt-pkg-doc

Remove libapt-pkg-doc Configurations and Data

To remove libapt-pkg-doc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libapt-pkg-doc

Remove libapt-pkg-doc configuration, data, and all of its dependencies

We can use the following command to remove libapt-pkg-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libapt-pkg-doc

References

Summary

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