CentOS: lsb_release: command not found

First let me declare that I’m new to CentOS. The folowing is a note to self which demonstrates how we search for a package that provides some commands and intall it using yum on CentOS. When I ran ‘lsb_release -a’, the following message is returned: -bash: lbs_release: command not found To fix it, we need to install the package which provides lsb_release command. # yum provides */lsb_release ... redhat-lsb-4.0-3.el6.centos.i686 : LSB base libraries support for CentOS Repo : base Matched from: Filename : /usr/bin/lsb_release redhat-lsb-4.0-3.el6.centos.x86_64 : LSB base libraries support for CentOS Repo : base Matched from: Filename : /usr/bin/lsb_release dkms-2.2.0.3-2.el6.noarch : Dynamic Kernel Module Support Framework Repo : epel Matched from: Filename : /usr/lib/dkms/lsb_release So, let’s install redhat-lsb package: ...

October 21, 2012 · 1 min · 164 words · kenno

How to tell which Linux distro you are running

Update Thanks to Jayen, there is a better way: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 9.10 Release: 9.10 Codename: karmic $ cat /etc/issue Debian GNU/Linux squeeze/sid n l Or $ cat /proc/version Linux version 2.6.32-trunk-686 (Debian 2.6.32-5) (ben@decadent.org.uk) (gcc version 4.3.4 (Debian 4.3.4-6) ) #1 SMP Sun Jan 10 06:32:16 UTC 2010 Source: Which Linux Distro are you using??

February 3, 2010 · 1 min · 66 words · kenno