查看linux发行版本:lsb_release -a
运行该命令时若提示lsb_release命令不存在 不存在,则表明系统未安装该命令,报错如下:
解决方法:
- 查看 lsb_release 命令属于哪个软件包,命令为
yum provides */lsb_release
- 使用yum 进行安装,命令为
yum -y install redhat-lsb-core-4.1-27.el7.centos.1.x86_64
查看linux发行版本:lsb_release -a
运行该命令时若提示lsb_release命令不存在 不存在,则表明系统未安装该命令,报错如下:
解决方法:
yum provides */lsb_release
yum -y install redhat-lsb-core-4.1-27.el7.centos.1.x86_64