How to Install and Uninstall python-dev Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 21,2024

1. Install "python-dev" package

This tutorial shows how to install python-dev on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-dev

2. Uninstall "python-dev" package

Please follow the instructions below to uninstall python-dev on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-dev package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-dev
Architecture: amd64
Version: 2.7.12-1~16.04
Multi-Arch: allowed
Priority: optional
Section: python
Source: python-defaults
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Matthias Klose
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 18
Depends: python (= 2.7.12-1~16.04), libpython-dev (= 2.7.12-1~16.04), python2.7-dev (>= 2.7.12-1~)
Filename: pool/main/p/python-defaults/python-dev_2.7.12-1~16.04_amd64.deb
Size: 1186
MD5sum: 3909bbdfd49d1a486ceacd70d599fbb3
SHA1: f1085d4c24f31a338b77631661542d0568878cc7
SHA256: 2d1565f3dd7acc391071280dcc5906a79583c3678dc784b67a7d0c62e99aaccf
SHA512: e4218d57f7f30f1fee85b5202400ba9fb122dbac671c45ab67ca9db76d762b7cd9a03be9980653ceed6232e1faa7fb0b6d1497a5fb64f67fedb0aecaa45d0653
Homepage: http://www.python.org/
Description-en: header files and a static library for Python (default)
Header files, a static library and development tools for building
Python modules, extending the Python interpreter or embedding Python
in applications.
.
This package is a dependency package, which depends on Debian's default
Python version (currently v2.7).
Description-md5: 93a1917c3f17606b40377d0b737c6c92
Supported: 5y

Package: python-dev
Priority: optional
Section: python
Installed-Size: 18
Maintainer: Ubuntu Developers
Original-Maintainer: Matthias Klose
Architecture: amd64
Source: python-defaults
Version: 2.7.11-1
Depends: python (= 2.7.11-1), libpython-dev (= 2.7.11-1), python2.7-dev (>= 2.7.11-1~)
Filename: pool/main/p/python-defaults/python-dev_2.7.11-1_amd64.deb
Size: 1160
MD5sum: a1dc029ad0f502f7d41fdb5639650b85
SHA1: b1d9b89eea0c32540ea208966cccd1937c8d48dc
SHA256: 7b878ffa20e0db8466805eaca5db1ff6b651c4cfe4c17e9e039beba59402be70
Description-en: header files and a static library for Python (default)
Header files, a static library and development tools for building
Python modules, extending the Python interpreter or embedding Python
in applications.
.
This package is a dependency package, which depends on Debian's default
Python version (currently v2.7).
Description-md5: 93a1917c3f17606b40377d0b737c6c92
Multi-Arch: allowed
Homepage: http://www.python.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y