How to install python3-distro on Amazon Linux
Linux Distribution - a Linux OS platform information API
Availability
| Distro | aarch64 | noarch | x86_64 | Version |
|---|---|---|---|---|
| Amazon Linux 2023 | — | — | — | |
| Amazon Linux 2012.03 | — | — | — | |
| Amazon Linux 2 | — | ✓ | — | 1.2.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 Amazon Linux.
Install
python3-distro on Amazon Linux 2
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install python3-distro
Package downloads require an active GetPageSpeed subscription — one repository for python3-distro and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install python3-distro on Amazon Linux?
Add the GetPageSpeed repository, then install the python3-distro package with your system package manager.
Which Amazon Linux versions is python3-distro available for?
python3-distro is available for Amazon Linux 2.