LSB_RELEASE(1)
π NAME π
okay so bestie, welcome to the LSB_RELEASE(1) era β this is the manual page for lsb_release v3.3, brought to you by the fine people at FSG. she prints your LSB (Linux Standard Base) and distro info and honestly? she ate. let's get into it π
β¨ SYNOPSIS β¨
lsb_release [OPTION]...
that's it. that's the whole vibe. options only, no positional drama π
πΈ DESCRIPTION πΈ
lsb_release v3.3 prints certain LSB (Linux Standard Base) and Distribution information. like, that's her whole job and she's iconic for it π
if you pass no OPTION at all? she defaults to -v. no notes, that's just what she does π¦
π«Ά OPTIONS π«Ά
-v,--versionβ shows you the version of the LSB specification that your distribution is compliant with. the receipts, basically π-i,--idβ prints the string id of the distributor. who made you π-d,--descriptionβ prints the single line text description of the distribution. one (1) line, she's concise π-r,--releaseβ prints the release number of the distribution π’-c,--codenameβ prints the codename according to the distribution release. yes she has a government name and a cute name πΈ-a,--allβ prints all of the above. the full info dump, the whole menu π₯-s,--shortβ uses the short output format for the info requested by the other options (orversionif none were given). less yapping, same facts β¨-h,--helpβ displays this message. the classic π
π FILES π
if your installation is LSB compliant, the /etc/lsb-release file should contain the LSB_VERSION field. the value of that field should be a colon separated list of supported module versions, and those indicate the LSB specification modules your installation is compliant with. if the installation is not compliant, that field should not be present. periodt π«
the optional fields are DISTRIB_ID, DISTRIB_RELEASE, DISTRIB_CODENAME, DISTRIB_DESCRIPTION, and they can be used to override information that gets parsed from the /etc/os-release file. but listen β since /etc/os-release is the new standard, there is no need anymore to add any of those optional fields to /etc/lsb-release. she's moved on, and honestly? growth π
if the /etc/lsb-release.d directory exists, it is searched for filenames, and those filenames are taken as additional module-version strings to add to LSB_VERSION. little bonus content folder ποΈ
the required line style is:
"Distributor release x.x (Codename)"
where Distributor can be a couple of words, but then they get concatenated (i.e. Linux Foo BarLinux Linux -> FooBarLinux), x.x starts with a digit followed by any non-blank characters, and Codename will also be concatenated (blanks cleanup only). so like, no spaces allowed, the spaces get yeeted π§Ή
π EXAMPLES π
say the /etc/lsb-release file contains:
LSB_VERSION="core-2.0-ia64:core-2.0-noarch"
DISTRIB_DESCRIPTION="I enjoy using my distrib"
and the /etc/lsb-release.d directory contains:
graphics-2.0-ia64 graphics-2.0-noarch
and the /etc/os-release file contains:
NAME="SLES"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
ID="sles"
then the results of various options will be:
$ ./lsb_release --all
LSB Version:
core-2.0-ia64:core-2.0-noarch:graphics-2.0-ia64:graphics-2.0-noarch
Distributor ID: SUSE
Description: I enjoy using my distrib
Release: 12.2
Codename: n/a
$ ./lsb_release -a -s
1.0 SUSE "I enjoy using my distrib" 12.2 n/a
and if the /etc/lsb-release file is absent (which indicates this is not an LSB compliant distribution), the result will be:
$ ./lsb_release -a
LSB Version: n/a
Distributor ID: SUSE
Description: SUSE Linux Enterprise Server 12 SP2
Release: 12.2
Codename: n/a
see how she pulls the description straight from /etc/os-release when there's nothing to override it? chef's kiss π©π³π
π COPYRIGHT π
Copyright Β© 2000, 2002, 2004 Free Standards Group, Inc. Copyright Β© 2017 SUSE Linux GmbH Copyright Β© 2022 SUSE Software Solutions Germany GmbH Copyright Β© 2021, 2023 Neal Gompa
this is free software; see the source for copying conditions. there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so like, don't come for her if something breaks, bestie π
originally written by Dominique MASSONIE. legend behaviour, fr fr π«Ά
no cap, all the legal stuff above is real and you should read it β no warranty means no warranty, i don't make the rules π
that's the whole page, babe. lsb_release v3.3, page LSB_RELEASE(1), dated November 2023 β go check your distro's vibe and slay πβ¨π¦
π¦ where this page comes from
- epel 10: lsb_release 3.3-5.el10_0 Β· GPL-2.0-or-later
- fedora 43: lsb_release 3.3-7.fc43 Β· GPL-2.0-or-later
- fedora 44: lsb_release 3.3-8.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lsb-release 3.3-160000.3.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms