distro

Linux OS platform information API

Install

All systems
curl cmd.cat/distro.sh
Debian Debian
apt-get install python3-distro
Ubuntu
apt-get install python3-distro
Arch Arch Linux
pacman -S python3-distro
image/svg+xml Kali Linux
apt-get install python3-distro
Fedora
dnf install python3-distro
Windows (WSL2)
sudo apt-get update sudo apt-get install python3-distro
Raspbian
apt-get install python3-distro

python3-distro

Linux OS platform information API

distro (for: Linux Distribution) 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 which isn't necessarily Python bound like a command-line interface. This is the Python 3 version of the library.

python-distro

Linux OS platform information API

distro (for: Linux Distribution) 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 which isn't necessarily Python bound like a command-line interface. This is the Python 2 version of the library.