How to install python2-distro on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

Linux Distribution - a Linux OS platform information API

License: ASL 2.0 Vendor: Fedora Project https://github.com/python-distro/distro

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel noarch Version
RHEL 7 Base 1.5.0

Description

The distro (for: Linux Distribution) package provides information about the Linux distribution it runs on, such as a reliable machine-readable ID, or version information. It is a renewed alternative implementation for Python's original platform.linux_distribution function, but it also provides much more functionality. An alternative implementation became necessary because Python 3.5 deprecated this function, and Python 3.7 is expected to remove it altogether. Its predecessor function platform.dist was already deprecated since Python 2.6 and is also expected to be removed in Python 3.7. Still, there are many cases in which access to that information is needed. See Python issue 1322 for more information. Python 2 version.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Install

Base RHEL 7

python2-distro on CentOS 7 / RHEL 7

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install python2-distro

Package downloads require an active GetPageSpeed subscription — one repository for python2-distro and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

How do I install python2-distro on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?

Add the GetPageSpeed repository, then install the python2-distro package with your system package manager.

Which Enterprise Linux versions is python2-distro available for?

python2-distro is available for RHEL 7.

Subscribe