Lsb release: Difference between revisions

From ICO wiki
Jump to navigationJump to search
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Author=
=Author=


Elizaveta Romanova, A21
Nimi: Elizaveta Romanova


.09.2017
Rühm: A21
 
Esitamise kuupäev: 9.10.2017


=About command=
=About command=
Line 17: Line 19:
|'''-v'''
|'''-v'''
|'''--version'''
|'''--version'''
|Show the version of the Linux Standard Base that your system is compliant with. The version is displayed as a colon-separated list of LSB module descriptions.
|show LSB modules this system supports
          
          
|-
|-
|'''-i'''  
|'''-i'''  
|'''--id'''
|'''--id'''
|Display the ID of your Linux distributor. For instance, if you are running Debian, this option will display
|show distributor ID
<br>Distributor ID: Debian.<br/>


|-
|-
|'''-d'''  
|'''-d'''  
|'''--description'''
|'''--description'''
|Display a description of your Linux distribution. For instance, if you are running CentOS 7, this will display something like
|show description of this distribution
Description:
<br>CentOS Linux release 7.3.1611 (Core)<br/>


|-
|-
|'''-r'''  
|'''-r'''  
|'''--release'''
|'''--release'''
|Display the release number of the current operating system. For instance, if you are running Fedora 25, this will output
|show release number of this distibution
<br>Release: 25<br/>


|-
|-
|'''-c'''  
|'''-c'''  
|'''--codename'''
|'''--codename'''
|Display the codename of the current operating system. For instance, if you are running Ubuntu 16.04, this will display
|show code name of this distribution
<br>Codename: xenial<br/>


|-
|-
|'''-a'''  
|'''-a'''  
|'''--all'''
|'''--all'''
|Display all of the above information. For instance, if you are running Arch Linux, this will display
|show all of the above information
<font size="2">''LSB Version: 1.4
<p>''Distributor ID: Arch''</p>
<p>''Description: Arch Linux''</p>
<p>''Release: rolling''</p>
<p>''Codename: n/a''</p></font>


|-
|-
|'''-s'''  
|'''-s'''  
|'''--short'''
|'''--short'''
|Use the "short" output format, which omits headers. You can use this in combination with another option. For instance, if you are running Fedora 25, the command
|show requested information in short format
<font size="2">'''lsb_release'''</font>
<br>will display:<br/>
<font size="2">25</font>


|-
|-
|'''-h'''  
|'''-h'''  
|'''--help'''
|'''--help'''
|Display a help message which summarizes these options.
|show this help message and exit
|}
|}


=Installing LSB Core=
=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===
<font size="3>sudo apt-get update && sudo apt-get install lsb-core</font>


===Ubuntu, Debian===
===CentOS===
===CentOS===
<font size="3>sudo yum update && sudo yum install redhat-lsb-core</font>
===Fedora===
===Fedora===
<font size="3>sudo dnf update && sudo dnf install redhat-lsb-core</font>
===OpenSUSE===
===OpenSUSE===
<font size="3>sudo zypper update && sudo zypper install lsb-core</font>
===Arch===
===Arch===
<font size="3>pacman -Syu lsb-release</font>
===Other distributions===
===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".


=Examples=
=Examples=
The following command will list the LSB Profiles which are currently supported on this platform.
<font size="3>lsb_release -a</font>
<p>Display all LSB information specific to your Linux distribution. Output will resemble the following:</p>
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
<font size="3>'''Note:'''</font>
<p>If you receive a message like this:</p>
<p>''No LSB modules are available''</p>
..you will need to install the LSB core software first. See section Installing LSB Core above for more information.


=Related command=
=Related command=
<font size="3>'''uname'''</font> — Print information about the current system and its kernel.
=Allikad=
1. https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/lsbrelease.html
2. http://linuxadministrative.blogspot.com.ee/2014/08/lsbrelease-command-examples.html
[[Category:Operatsioonisüsteemide administreerimine ja sidumine]]

Latest revision as of 15:55, 9 October 2017

Author

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.

Syntax

lsb_release  [OPTIONS]

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

CentOS

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

Fedora

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

OpenSUSE

sudo zypper update && sudo zypper install lsb-core

Arch

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".

Examples

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

Note:

If you receive a message like this:

No LSB modules are available

..you 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.

Allikad

1. https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/lsbrelease.html

2. http://linuxadministrative.blogspot.com.ee/2014/08/lsbrelease-command-examples.html