1FSG(1) FSG FSG(1)
2
3
4
6 FSG - manual page for FSG lsb_release v2.0
7
9 lsb_release [OPTION]...
10
12 FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and Dis‐
13 tribution information.
14
15 With no OPTION specified defaults to -v.
16
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
46 options (or version if none).
47
48 -h, --help
49
50 Display this message.
51
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/distrib-release" file.
62
63 If the "/etc/lsb-release.d" directory exists, it is searched for file‐
64 names which are taken as additional module-version strings to add to
65 LSB_VERSION.
66
67 The "/etc/distrib-release" file contains a description line which is
68 parsed to get information (especially on currently non-LSB compliant
69 systems).
70
71 The required line style is:
72 "Distributor release x.x (Codename)"
73
74 Where Distributor can be a couple of words, but then concatenated (i.e.
75 Linux Foo BarLinux Linux -> FooBarLinux),
76 x.x starts with a digit followed by any non-blank characters, Codename
77 will also be concatenated (blanks cleanup only).
78
79 release may not be used as a keyword in DISTRIB_DESCRIPTION if you
80 don't want to override "/etc/distrib-release" data.
81
82 Notice: To support the Debian distributions' lack of information (see
83 "/etc/debian_version" file) some have been directly added into the
84 lsb_release script.
85
87 If the "/etc/lsb-release" file contains:
88
89 LSB_VERSION="core-2.0-ia64:core-2.0-noarch"
90 DISTRIB_DESCRIPTION="I enjoy using my distrib"
91
92 and the "/etc/lsb-release.d" directory contains:
93
94 graphics-2.0-ia64 graphics-2.0-noarch
95
96 and the "/etc/foobar-release" file contains:
97
98 My Linux Distrib release 1.0RC4 (TryIt)
99
100 Then the results of various options will be:
101
102 $ ./lsb_release --all
103 LSB Version: core-2.0-ia64:core-2.0-noarch:graphics-2.0-ia64:graph‐
104 ics-2.0-noarch
105 Distributor ID: MyDistrib
106 Description: I enjoy using my distrib
107 Release: 1.0RC4
108 Codename: TryIt
109
110 $ ./lsb_release -a -s
111 1.0 MyDistrib "I enjoy using my distrib" 1.0RC4 TryIt
112
113 If the "/etc/lsb-release" file is absent (indicating this is not an LSB
114 compliant distribution), the result will be:
115
116 $ ./lsb_release -a
117 LSB Version: n/a
118 Distributor ID: MyDistrib
119 Description: My Linux Distrib release 1.0RC4 (TryIt)
120 Release: 1.0RC4
121 Codename: TryIt
122
124 Report bugs at http://bugs.linuxbase.org. Please include a complete,
125 self contained example that will allow the bug to be reproduced, and
126 say which version of lsb_release you are using.
127
129 Copyright © 2000, 2002, 2004 Free Standards Group, Inc.
130 This is free software; see the source for copying conditions. There is
131 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
132 PURPOSE.
133
134 Originally written by Dominique MASSONIE.
135
136
137
138FSG lsb_release v2.0 May 2019 FSG(1)