lsb_release命令不存在的解决方法

  • 查看系统的发行版本信息,发现不存在这个命令
[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命令不存在的解决方法)