About Anaconda Help Download Anaconda

conda-forge / packages / lsb-release 11.1.0

LSB release detection module for Debian

copied from cf-staging / lsb-release

Installers

  • noarch v11.1.0
  • linux-64 v11.1.0

conda install

To install this package run one of the following:
conda install conda-forge::lsb-release

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

© 2025 Anaconda, Inc. All Rights Reserved. (v4.0.6) Legal | Privacy Policy