Check Linux distribution name

Here‘s what I found:

platform.linux_distribution

Tries to determine the name of the
Linux OS distribution name.

It says platform.dist is deprecated since 2.6, you have to use platform.linux_distribution in Python 2 (but it is also deprecated in Python 3.5).

Leave a Comment