How To Install python-apt-doc on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python-apt-doc
on Ubuntu 20.04.
What is python-apt-doc
python-apt-doc is:
The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains the API documentation of python-apt.
Package: python-apt-doc Architecture: all Version: 2.0.0ubuntu0.20.04.3 Priority: optional Section: doc Source: python-apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1490 Depends: libjs-jquery, libjs-underscore, libjs-sphinxdoc (>= 1.0) Replaces: python-apt (« 0.7.94) Enhances: python-apt Filename: pool/main/p/python-apt/python-apt-doc_2.0.0ubuntu0.20.04.3_all.deb Size: 157844 MD5sum: 81e9cc631373d8db67c0e483b8f801e2 SHA1: 95e86cacdc17687f33a9c70b9185ab7573ee33b6 SHA256: 08725acfff7a5b6a4e62de5761b24bcb0bb4618be0a0b3f48f0f24636bd03e3f SHA512: b2b473378b36a79c0a8660f54f2d1c652c954b88b6fcb3d4a2d124d68d8b3411403ba1f4a8b694555cded50434b98567001de5f8dec0add7774b226d50955ef8 Description-en: Python interface to libapt-pkg (API documentation) The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains the API documentation of python-apt.
Package: python-apt-doc Architecture: all Version: 2.0.0 Priority: optional Section: doc Source: python-apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1489 Depends: libjs-jquery, libjs-underscore, libjs-sphinxdoc (>= 1.0) Replaces: python-apt (« 0.7.94) Enhances: python-apt Filename: pool/main/p/python-apt/python-apt-doc_2.0.0_all.deb Size: 157812 MD5sum: faf27818af087dc55b94f39fae36acbe SHA1: 5e170d247aee1b3e1d27dfca16771f451391a9f9 SHA256: dcb6e89f68e7476bf42d9a76d06e252951d7ae9a9d5f8c6012cc8a1d11cb5a7c Description-en: Python interface to libapt-pkg (API documentation) The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains the API documentation of python-apt.
There are three methods to install python-apt-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 python-apt-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 python-apt-doc
using apt-get
by running the following command:
sudo apt-get -y install python-apt-doc
Install python-apt-doc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-apt-doc
using apt
by running the following command:
sudo apt -y install python-apt-doc
Install python-apt-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 python-apt-doc
using aptitude
by running the following command:
sudo aptitude -y install python-apt-doc
How To Uninstall python-apt-doc on Ubuntu 20.04
To uninstall only the python-apt-doc
package we can use the following command:
sudo apt-get remove python-apt-doc
Uninstall python-apt-doc And Its Dependencies
To uninstall python-apt-doc
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python-apt-doc
Remove python-apt-doc Configurations and Data
To remove python-apt-doc
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python-apt-doc
Remove python-apt-doc configuration, data, and all of its dependencies
We can use the following command to remove python-apt-doc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-apt-doc
References
Summary
In this tutorial we learn how to install python-apt-doc
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.