How to Install and Uninstall python2.x86_64 Package on Red Hat Enterprise Linux 8 (RHEL 8)

Last updated: October 13,2024

1. Install "python2.x86_64" package

This guide covers the steps necessary to install python2.x86_64 on Red Hat Enterprise Linux 8 (RHEL 8)

$ sudo dnf update $ sudo dnf install python2.x86_64

2. Uninstall "python2.x86_64" package

This tutorial shows how to uninstall python2.x86_64 on Red Hat Enterprise Linux 8 (RHEL 8):

$ sudo dnf remove python2.x86_64 $ sudo dnf autoremove

3. Information about the python2.x86_64 package on Red Hat Enterprise Linux 8 (RHEL 8)

Last metadata expiration check: 0:35:47 ago on Mon Feb 26 15:59:38 2024.
Available Packages
Name : python2
Version : 2.7.18
Release : 15.module+el8.9.0+20125+68111a8f
Architecture : x86_64
Size : 111 k
Source : python2-2.7.18-15.module+el8.9.0+20125+68111a8f.src.rpm
Repository : ubi-8-appstream-rpms
Summary : An interpreted, interactive, object-oriented programming language
URL : https://www.python.org/
License : Python
Description : Python 2 is an old version of the language that is incompatible with the 3.x
: line of releases. The language is mostly the same, but many details, especially
: how built-in objects like dictionaries and strings work, have changed
: considerably, and a lot of deprecated features have finally been removed in the
: 3.x line.
:
: Note that documentation for Python 2 is provided in the python2-docs
: package.
:
: This package provides the "python2" executable; most of the actual
: implementation is within the "python2-libs" package.
: For the unversioned "python" executable, see manual page "unversioned-python".