問題:lsb_release 是查看系統版本信息的工具
[root@localhost ~]# lsb_release -a
-bash: lsb_release: command not found
原因:沒有安裝lsb
LSB 簡介
目前 Linux 的發行版非常繁多,為了促進 Linux 不同發行版間的兼容性,LSB(Linux Standards Base)開發了一系列標准,使各種軟件可以很好地在兼容 LSB 標准的系統上運行,從而可以幫助軟件供應商更好地在 Linux 系統上開發產品,或將已有的產品移植到 Linux 系統上。
解決方法:yum install redhat-lsb -y
[root@localhost ~]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0- noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS Linux release 6.0 (Final)
Release: 6.0
Codename: Final