1LSB_RELEASE(1)                        FSG                       LSB_RELEASE(1)
2
3
4

NAME

6       lsb_release - manual page for lsb_release v3.1
7

SYNOPSIS

9       lsb_release [OPTION]...
10

DESCRIPTION

12       lsb_release v3.1 prints certain LSB (Linux Standard Base) and Distribu‐
13       tion information.
14
15       With no OPTION specified defaults to -v.
16

OPTIONS

18       -v, --version
19
20              Display the version of the LSB specification against  which  the
21              distribution is compliant.
22
23       -i, --id
24
25              Display the string id of the distributor.
26
27       -d, --description
28
29              Display the single line text description of the distribution.
30
31       -r, --release
32
33              Display the release number of the distribution.
34
35       -c, --codename
36
37              Display the codename according to the distribution release.
38
39       -a, --all
40
41              Display all of the above information.
42
43       -s, --short
44
45              Use  short  output format for information requested by other op‐
46              tions (or version if none).
47
48       -h, --help
49
50              Display this message.
51

FILES

53       If the installation  is  LSB  compliant,  the  "/etc/lsb-release"  file
54       should contain the LSB_VERSION field.  The value of the field should be
55       a colon separated list of supported module versions indicating the  LSB
56       specification  modules  to  which the installation is compliant. If the
57       installation is not compliant, the above field should not be present.
58
59       Optional fields are DISTRIB_ID, DISTRIB_RELEASE, DISTRIB_CODENAME, DIS‐
60       TRIB_DESCRIPTION  and  can  be  used  to  override information which is
61       parsed from the "/etc/os-release" file. Since "/etc/os-release" is  the
62       new  standard,  there  is  no  need  anymore to add any of the optional
63       fields to "/etc/lsb-release".
64
65       If the "/etc/lsb-release.d" directory exists, it is searched for  file‐
66       names  which  are  taken as additional module-version strings to add to
67       LSB_VERSION.
68
69       The required line style is:
70       "Distributor release x.x (Codename)"
71
72       Where Distributor can be a couple of words, but then concatenated (i.e.
73       Linux Foo BarLinux Linux -> FooBarLinux),
74       x.x  starts with a digit followed by any non-blank characters, Codename
75       will also be concatenated (blanks cleanup only).
76

EXAMPLES

78       If the "/etc/lsb-release" file contains:
79
80       LSB_VERSION="core-2.0-ia64:core-2.0-noarch"
81       DISTRIB_DESCRIPTION="I enjoy using my distrib"
82
83       and the "/etc/lsb-release.d" directory contains:
84
85       graphics-2.0-ia64    graphics-2.0-noarch
86
87       and the "/etc/os-release" file contains:
88
89       NAME="SLES"
90       VERSION="12-SP2"
91       VERSION_ID="12.2"
92       PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
93       ID="sles"
94
95
96       Then the results of various options will be:
97
98       $ ./lsb_release --all
99       LSB Version:     core-2.0-ia64:core-2.0-noarch:graphics-2.0-ia64:graph‐
100       ics-2.0-noarch
101       Distributor ID: SUSE
102       Description:    I enjoy using my distrib
103       Release:        12.2
104       Codename:       n/a
105
106       $ ./lsb_release -a -s
107       1.0 SUSE "I enjoy using my distrib" 12.2 n/a
108
109       If the "/etc/lsb-release" file is absent (indicating this is not an LSB
110       compliant distribution), the result will be:
111
112       $ ./lsb_release -a
113       LSB Version:    n/a
114       Distributor ID: SUSE
115       Description:    SUSE Linux Enterprise Server 12 SP2
116       Release:        12.2
117       Codename:       n/a
118
120       Copyright © 2000, 2002, 2004 Free Standards Group, Inc.
121       Copyright © 2017 SUSE Linux GmbH
122       Copyright © 2022 SUSE Software Solutions Germany GmbH
123
124       This is free software; see the source for copying conditions.  There is
125       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
126       PURPOSE.
127
128       Originally written by Dominique MASSONIE.
129
130
131
132lsb_release v3.1                 October 2023                   LSB_RELEASE(1)
Impressum