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

Last updated: May 13,2024

1. Install "libpython2-dev" package

Please follow the steps below to install libpython2-dev on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install libpython2-dev

2. Uninstall "libpython2-dev" package

Learn how to uninstall libpython2-dev on Debian 11 (Bullseye):

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

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

Package: libpython2-dev
Source: python-defaults
Version: 2.7.18-3
Installed-Size: 43
Maintainer: Matthias Klose
Architecture: amd64
Replaces: libpython-dev (<< 2.7.15-2)
Depends: libpython2.7-dev (>= 2.7.18~)
Breaks: libpython-dev (<< 2.7.15-2)
Description: header files and a static library for Python2
Description-md5: 39e8987518a407d42638b3fc80fc84cd
Multi-Arch: same
Homepage: https://www.python.org/
Tag: devel::library, role::devel-lib
Section: libdevel
Priority: optional
Filename: pool/main/p/python-defaults/libpython2-dev_2.7.18-3_amd64.deb
Size: 21272
MD5sum: ad88b5134c62a0bd98f1e7381e51e61b
SHA256: 2e2983877033192ff1b6c68cb7494cd06afdf9e59c3994b1c1fd4bd6d6c0faa7