How to Install and Uninstall python2 Package on Kali Linux

Last updated: May 16,2024

1. Install "python2" package

Please follow the step by step instructions below to install python2 on Kali Linux

$ sudo apt update $ sudo apt install python2

2. Uninstall "python2" package

This tutorial shows how to uninstall python2 on Kali Linux:

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

3. Information about the python2 package on Kali Linux

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)
Size: 24468
SHA256: 8aaedea6e787900431accbf4f4175cf65751596d6e85a6fc18ea9688d6d5f190
SHA1: 60e98a76225dba6c0637ff67431d75d7e4aa97d5
MD5sum: c42a2e5bd8c6cac117fd658d166b172d
Description: interactive high-level object-oriented language (Python2 version)
Python2, the high-level, interactive object oriented language,
includes an extensive class library with lots of goodies for
network programming, system administration, sounds and graphics.
.
This package is a dependency package, which depends on Debian's Python2
version (currently v2.7).
Description-md5:
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