{
    "mode": "pydoc",
    "parameter": "lsb_release",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/lsb_release/json",
    "generated": "2026-06-02T14:27:22Z",
    "sections": {
        "NAME": {
            "content": "lsbrelease\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "# LSB release detection module for Debian\n# (C) 2005-10 Chris Lawrence <lawrencc@debian.org>\n# (C) 2018 Didier Raboud <odyx@debian.org>\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "check_modules_installed",
                    "content": "# This is Debian-specific at present\n"
                },
                {
                    "name": "compare_release",
                    "content": ""
                },
                {
                    "name": "get_distro_info",
                    "content": ""
                },
                {
                    "name": "get_distro_information",
                    "content": ""
                },
                {
                    "name": "get_os_release",
                    "content": "# Whatever is guessed above can be overridden in /usr/lib/os-release by derivatives\n"
                },
                {
                    "name": "guess_debian_release",
                    "content": ""
                },
                {
                    "name": "guess_release_from_apt",
                    "content": ""
                },
                {
                    "name": "lookup_codename",
                    "content": ""
                },
                {
                    "name": "parse_apt_policy",
                    "content": ""
                },
                {
                    "name": "parse_policy_line",
                    "content": ""
                },
                {
                    "name": "release_index",
                    "content": ""
                },
                {
                    "name": "test",
                    "content": ""
                },
                {
                    "name": "valid_lsb_versions",
                    "content": ""
                }
            ]
        },
        "DATA": {
            "content": "PACKAGES = 'lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-languages ls...\nRELEASESORDER = ['buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woo...\nRELEASECODENAMELOOKUP = {'1.1': 'buzz', '1.2': 'rex', '1.3': 'bo', '...\nTESTINGCODENAME = 'unknown.new.testing'\nlongnames = {'a': 'suite', 'c': 'component', 'l': 'label', 'o': 'origi...\nmodnamere = re.compile('lsb-(?P<module>[a-z0-9]+)-(?P<arch>[^ ]+)(?: \\...\nprintfunction = Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0)...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/lsbrelease.py\n\n",
            "subsections": []
        }
    },
    "summary": "lsbrelease",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Get LSB (Linux Standard Base) and distribution-specific information.",
        "examples": [
            {
                "description": "Print all available information",
                "command": "lsb_release {{-a|--all}}"
            },
            {
                "description": "Print a description (usually the full name) of the operating system",
                "command": "lsb_release {{-d|--description}}"
            },
            {
                "description": "Print only the operating system name (ID), in short format (omitting the field name)",
                "command": "lsb_release {{-is|--id --short}}"
            },
            {
                "description": "Print the release number and codename of the distribution, in short format",
                "command": "lsb_release {{-rcs|--release --codename --short}}"
            }
        ]
    }
}