Wednesday, January 21, 2015

[CentOS]: Linux Troubleshooting: How To Fix ‘lsb_release’ Command Not Found In CentOS?

Linux Troubleshooting: How To Fix ‘lsb_release’ Command Not Found In CentOS?


Recently, I came through an error called “You must install lsb_release binary before launching this install script.” while testing “Shinken” network monitoring tool. After a bit of research I got the solution for this error. If you had faced the same error before, just do the following steps.
First let us find out, which package provides the ‘lsb_release’ command. To do that, enter the following command from your Terminal.
yum provides */lsb_release
Sample output:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net

[...]

redhat-lsb-core-4.1-24.el7.i686 : LSB Core module support
Repo        : base
Matched from:
Filename    : /usr/bin/lsb_release

redhat-lsb-core-4.1-24.el7.x86_64 : LSB Core module support
Repo        : base
Matched from:
Filename    : /usr/bin/lsb_release
As you see in the above output, redhat-lsb-core-4.1-24.el7.x86_64 package provides the lsb_releasecommand.
So let us install it to use the lsb_release command:
yum install redhat-lsb-core
or
yum install redhat-lsb
That’s it. Lsb_release command should work now.

No comments: