lsb_release
print distribution-specific information (minimal implementation).
- Provided by: lsb-release (Version: 12.1-2build1)
- Source: lsb-release-minimal
- Report a bug
print distribution-specific information (minimal implementation).
lsb_release [options]
This is a bare-bones version of the lsb_release command, implemented as a tiny POSIX shell script (less than 100 lines of commented code).
Instead of using LSB packages, this version of lsb_release uses the information in /etc/os-release and /usr/lib/os-release. Nevertheless, the output of this version is byte-for-byte compatible with the Python-based version provided by Debian and its derivatives.
Using this implementation it is possible to avoid installing Python in a base OS image while still retaining compatibility with older scripts that expect lsb_release to exist.
The program follows the usual GNU command line syntax, with long options starting with two dashes ("--"). A summary of options are included below.
Gioele Barabucci <https://gioele.io>
This implementation of lsb_release is free software released under the terms of the ISC license.