< Home - < Back

python2-distro


Information about the package, python2-distro, which is shipped with common Linux distributions. The python2-distro package is designed for, Linux Distribution - a Linux OS platform information API.


Package Name:

python2-distro

Summary:

Linux Distribution - a Linux OS platform information API

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.

Architecture:

noarch

Version:

1.0.3

Release:

1.el6

Size:

28 k

Repository:

epel

From Repository:

Licence:

ASL 2.0



Handy Yum Commands for python2-distro


Control the python2-distro package with the following handy commands outlined below.


Command

Description of Command

yum install python2-distro

This command will install python2-distro on the server.

yum remove python2-distro

This command will un-install python2-distro on the server. When you run this command, you will be asked if you are sure that you want to remove python2-distro, so you have to manually confirm that you want to do this.

yum -y remove python2-distro

This command will un-install python2-distro on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python2-distro when using the -y flag.

yum update python2-distro

This command will update python2-distro to the latest version. When you run this command, you will be asked if you are sure that you want to remove python2-distro, so you have to manually confirm that you want to do this.

yum -y update python2-distro

This command will update python2-distro to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python2-distro when using the -y flag.

yum info python2-distro

This command will show you core information about the python2-distro package.

yum deplist python2-distro

This command will show you the dependencies for python2-distro. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update python2-distro

This command will check if there is an update waiting on python2-distro. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.