「LSB」- Linux Standard Base

认识

官网:https://refspecs.linuxfoundation.org/lsb.shtml

The Linux Standard Base is a standard core system that third-party applications written for Linux can depend upon.

The Linux Standard Base (LSB) was a joint project by several Linux distributions[which?] under the organizational structure of the Linux Foundation to standardize the software system structure, including the Filesystem Hierarchy Standard. LSB was based on the POSIX specification, the Single UNIX Specification (SUS), and several other open standards, but extended them in certain areas.

Project Status | https://share.google/aimode/axOVPaw1lPa0yMavg | The Linux Standard Base (LSB) is no longer an actively maintained or widely adhered-to standard in modern Linux distributions. The project was essentially abandoned, with the last major release (version 5.0) in 2015, and major distributions like Debian, Ubuntu, and Red Hat have officially dropped compliance efforts since then.

性质

The goal of the LSB is to develop and promote a set of open standards that will increase compatibility among Linux distributions and enable software applications to run on any compliant system even in binary form. In addition, the LSB will help coordinate efforts to recruit software vendors to port and write products for Linux Operating Systems.

改进

lsb-release-minimal

官网:https://gioele.io/lsb-release-minimal
文档:https://codeberg.org/gioele/lsb-release-minimal/src/branch/master/README.md
仓库:https://codeberg.org/gioele/lsb-release-minimal

This repository contains 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. 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.

参考

Wikipedia / Linux Standard Base / https://en.wikipedia.org/wiki/Linux_Standard_Base