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

Last updated: May 01,2024

1. Install "python2" package

Please follow the guidelines below to install python2 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install python2

2. Uninstall "python2" package

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

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

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

Package: python2
Source: python-defaults
Version: 2.7.18-3
Installed-Size: 69
Maintainer: Matthias Klose
Architecture: amd64
Replaces: python (<< 2.7.15-2), python-dev (<< 2.6.5-2), python2-doc (<< 2.7.18-2)
Provides: python-ctypes, python-email, python-importlib, python-profiler, python-wsgiref
Depends: python2.7 (>= 2.7.18~), libpython2-stdlib (= 2.7.18-3)
Pre-Depends: python2-minimal (= 2.7.18-3)
Suggests: python2-doc (= 2.7.18-3), python-tk (>= 2.7.18~)
Conflicts: python-central (<< 0.5.5)
Breaks: python (<< 2.7.15-2), python2-doc (<< 2.7.18-2), update-manager-core (<< 0.200.5-2)
Description: interactive high-level object-oriented language (Python2 version)
Description-md5: 8a23c719c291789e6e4e8971b03680c5
Multi-Arch: allowed
Homepage: https://www.python.org/
Section: python
Priority: optional
Filename: pool/main/p/python-defaults/python2_2.7.18-3_amd64.deb
Size: 24468
MD5sum: c42a2e5bd8c6cac117fd658d166b172d
SHA256: 8aaedea6e787900431accbf4f4175cf65751596d6e85a6fc18ea9688d6d5f190