How To Install python-apt-dev on Ubuntu 20.04

In this tutorial we learn how to install python-apt-dev on Ubuntu 20.04. python-apt-dev is Python interface to libapt-pkg (development files) Python interface to libapt-pkg (development files) Python interface to libapt-pkg (development files)

Introduction

In this tutorial we learn how to install python-apt-dev on Ubuntu 20.04.

What is python-apt-dev

python-apt-dev 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 header files needed to use python-apt objects from C++ applications.

Package: python-apt-dev Architecture: all Version: 2.0.0ubuntu0.20.04.3 Priority: optional Section: universe/python 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: 86 Depends: python-apt (>= 2.0.0ubuntu0.20.04.3), libapt-pkg-dev (>= 0.7.10) Recommends: python-dev Filename: pool/universe/p/python-apt/python-apt-dev_2.0.0ubuntu0.20.04.3_all.deb Size: 8636 MD5sum: bb58f17341b3950018086b78642c8e3b SHA1: 710629a266ff9a5a96fb26fb52bf87f5b7e1e8d9 SHA256: 356b05ae8a3ef563c2ab7136941f224469a4cf0554fb3f2696f919ef16902163 SHA512: b4227e99dbd58b44cc1cb15f8378515ee76dfc201d620f71af549c414a80612d979a9a55405f66d5748b2bd1100267d2561c8660768fff2ca1ef5bffdb368e32 Description-en: Python interface to libapt-pkg (development files) 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 header files needed to use python-apt objects from C++ applications.

Package: python-apt-dev Architecture: all Version: 2.0.0 Priority: optional Section: universe/python 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: 85 Depends: python-apt (>= 2.0.0), libapt-pkg-dev (>= 0.7.10) Recommends: python-dev Filename: pool/universe/p/python-apt/python-apt-dev_2.0.0_all.deb Size: 8328 MD5sum: 0ce8dc1dd4d875fb430a08e7228479cb SHA1: 0019a8645bde1d61c16b4489eb71600e334a5a5c SHA256: a47b0399e67f19459431080ca69f70af553e048a2d4bc96a292f91b966985ea8 Description-en: Python interface to libapt-pkg (development files) 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 header files needed to use python-apt objects from C++ applications.

There are three methods to install python-apt-dev 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-dev 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-dev using apt-get by running the following command:

sudo apt-get -y install python-apt-dev

Install python-apt-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-apt-dev

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

sudo aptitude -y install python-apt-dev

How To Uninstall python-apt-dev on Ubuntu 20.04

To uninstall only the python-apt-dev package we can use the following command:

sudo apt-get remove python-apt-dev

Uninstall python-apt-dev And Its Dependencies

To uninstall python-apt-dev 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-dev

Remove python-apt-dev Configurations and Data

To remove python-apt-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python-apt-dev

Remove python-apt-dev configuration, data, and all of its dependencies

We can use the following command to remove python-apt-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-apt-dev

References

Summary

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