CMD + K

lsb-release

Community

LSB release detection module for Debian

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::lsb-release

Usage Tracking

11.1.0
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

Intro

This conda package provides the lsb_release command for Debian-based Linux distributions such as Debian and Ubuntu. It provides a simple command-line interface for accessing metadata about the installed Linux distribution.

Motivation

Installation instructions for many Linux programs rely on the lsb_release command to detect the release number and/or codename of the installed Linux distribution. For example, as of the time of writing, PostgreSQL uses the lsb_release -cs command to detect the proper codename for the apt repository.

The Debian-based lsb-release package unfortunately depends on a system-wide installation of python3. This conda package avoids the need for a system-wide installation of python3 when a conda environment is already available. The distribution-specific data is comes from a tiny system package named distro-info-data, which can be installed with apt-get install -y distro-info-data.

Examples

Bash:

sudo apt-get install -y distro-info-data
mamba install -y lsb-release
lsb_release -a

(Substitute conda for mamba above in case you use that instead.)

Docker:

FROM condaforge/mambaforge:4.10.1-0

RUN : \

    && apt-get update \
    && apt-get install -y distro-info-data \
    && rm -rf /var/lib/apt/lists/* \

    && mamba install -y lsb-release \
    && conda clean -afy \
;


RUN lsb_release -a

About

Summary

LSB release detection module for Debian

Last Updated

Jun 26, 2021 at 09:54

License

GPL-2.0-only

Supported Platforms

noarch
linux-64