LSB_RELEASE(1)

πŸ“¦
version 3.3 Β· 2 versions
  • 3.3 Β· epel 10, fedora 43, fedora 44, opensuse-leap 16.0 (latest)
  • 3.2 Β· epel 9
, in epel 10, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’… 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 (or version if 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 Β© 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