lsb_release command not found

Linux里的lsb_release命令用来查看当前系统的发行版信 息(prints certain LSB (Linux Standard Base) and Distribution information.)。有了这个命令就可以清楚的知道到底是RedHat的、还是别的发行版,还有具体的版本号,比如3.4还是5.4等等。有些系 统上不一定安装了这个命令,可以通过查看/etc/issue文件得到发行版信息。

这里我们使用yum 来安装,但是首先我们得知道lsb_release 命令属于哪个软件包

yum provides */lsb_release

找出来后我们安装使用它

# yum -y install redhat-lsb*

原文章:

https://www.linuxidc.com/Linux/2017-05/143937.htm

原文地址:https://www.cnblogs.com/smail-bao/p/10403010.html