How to install python36-distro on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Linux Distribution - a Linux OS platform information API
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 3 version.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
python36-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 python36-distro
Package downloads require an active GetPageSpeed subscription — one repository for python36-distro and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install python36-distro on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the python36-distro package with your system package manager.
Which Enterprise Linux versions is python36-distro available for?
python36-distro is available for RHEL 7.