How to Install and Uninstall python2-dev Package on Debian 11 (Bullseye)

Last updated: January 11,2025

1. Install "python2-dev" package

This guide let you learn how to install python2-dev on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install python2-dev

2. Uninstall "python2-dev" package

This guide let you learn how to uninstall python2-dev on Debian 11 (Bullseye):

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

3. Information about the python2-dev package on Debian 11 (Bullseye)

Package: python2-dev
Source: python-defaults
Version: 2.7.18-3
Installed-Size: 15
Maintainer: Matthias Klose
Architecture: amd64
Replaces: python-dev (<< 2.7.15-2)
Depends: python2 (= 2.7.18-3), libpython2-dev (= 2.7.18-3), python2.7-dev (>= 2.7.18~)
Breaks: python-dev (<< 2.7.15-2)
Description: header files and a static library for Python2
Description-md5: 39e8987518a407d42638b3fc80fc84cd
Multi-Arch: allowed
Homepage: https://www.python.org/
Section: python
Priority: optional
Filename: pool/main/p/python-defaults/python2-dev_2.7.18-3_amd64.deb
Size: 1216
MD5sum: 653eaa91e7337b7d8ecbd8eab362c87f
SHA256: 57d06ee185406d1f12c22001c6c79a013f7290fe49dcdc381ffaa4b49489d2bd