美文网首页
lsb_release命令不存在的解决方法

lsb_release命令不存在的解决方法

作者: 信仰与初衷 | 来源:发表于2018-04-25 17:33 被阅读0次
  • 查看系统的发行版本信息,发现不存在这个命令
[root@localhost tomcat]# lsb_release -a
bash: lsb_release: command not found...
  • 安装
yum install redhat-lsb -y
  • 测试
[root@localhost tomcat]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.2.1511 (Core) 
Release:    7.2.1511
Codename:   Core

相关文章

网友评论

      本文标题:lsb_release命令不存在的解决方法

      本文链接:https://www.haomeiwen.com/subject/qnrelftx.html