How to Install and Uninstall python-dev Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 19,2024

1. Install "python-dev" package

This is a short guide on how to install python-dev on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install python-dev

2. Uninstall "python-dev" package

Please follow the guidelines below to uninstall python-dev on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the python-dev package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: python-dev
Architecture: amd64
Version: 2.7.15~rc1-1
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.15~rc1-1), libpython-dev (= 2.7.15~rc1-1), python2.7-dev (>= 2.7.15~rc1-1~)
Filename: pool/main/p/python-defaults/python-dev_2.7.15~rc1-1_amd64.deb
Size: 1256
MD5sum: eaf9dbe20181804589f66beee938d95b
SHA1: ab566e43e1b675dd184fb404abc53ef7d8f9e0b2
SHA256: c0f1439246fb95e255a123d8d083c8afef6e2fdfa2b567ccacc7d49ff9f5bbe1
Homepage: http://www.python.org/
Description: header files and a static library for Python (default)
Description-md5: 93a1917c3f17606b40377d0b737c6c92
Supported: 5y