Tuesday, November 13, 2007

Retrieving Linux Standard Base and Distro Information

Here's a quick tip on how to verify and confirm your current Linux Standard Base (LSB) and Distribution Information from command line using lsb_release linux binary command.

Issuing lsb_release from command line would show LSB specification information and distro release if your current linux distro is LSB specification compliant.

How to get more LSB or linux distro version information?
--------------------------------------------------------

To retrieve your linux distribution specific information, as root user, simply issue:

~~~~~~~~~~~~~~~~~~
# lsb_release --all
~~~~~~~~~~~~~~~~~~

If you are using Fedora 6, you should see similar results like so:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: FedoraCore
Description: Fedora Core release 6 (Zod)
Release: 6
Codename: Zod
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you are using Fedora 7, you should see similar results like so:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: Fedora
Description: Fedora release 7 (Moonshine)
Release: 7
Codename: Moonshine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The same applies to any other linux distro. This lsb_release is part of redhat-lsb rpm package.
By default installation, lsb_release is installed.

How to install lsb_release?
---------------------------

# yum -y install redhat-lsb

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy