Lsb release

From EIK wiki


Nimi: Elizaveta Romanova

Rühm: A21

Esitamise kuupäev: 9.10.2017

About command

The lsb_release command displays LSB (Linux Standard Base) information about your specific Linux distribution. It's a reliable way to get version information about the Linux system you're using.


lsb_release  [OPTIONS]


-v --version show LSB modules this system supports
-i --id show distributor ID
-d --description show description of this distribution
-r --release show release number of this distibution
-c --codename show code name of this distribution
-a --all show all of the above information
-s --short show requested information in short format
-h --help show this help message and exit

Installing LSB Core

lsb_release is part of a software package called the LSB core, which is not necessarily installed on your system by default. To install it, run the command below that corresponds to your specific system:

Ubuntu, Debian

sudo apt-get update && sudo apt-get install lsb-core


sudo yum update && sudo yum install redhat-lsb-core


sudo dnf update && sudo dnf install redhat-lsb-core


sudo zypper update && sudo zypper install lsb-core


pacman -Syu lsb-release

Other distributions

If your Linux distribution is not listed here, consult your package manager's repository for the package that contains "lsb-core" and/or "lsb_release".


The following command will list the LSB Profiles which are currently supported on this platform.

lsb_release -a

Display all LSB information specific to your Linux distribution. Output will resemble the following:

LSB Version:    core-5.0-amd64:core-5.0-noarch
Distributor ID: openSUSE project
Description:    openSUSE Leap 42.2
Release:        42.2
Codename:       n/a


If you receive a message like this:

No LSB modules are available will need to install the LSB core software first. See section Installing LSB Core above for more information.

Related command

uname — Print information about the current system and its kernel.