天天看點

lsb_release: command not found 解決方法(轉)

問題:通過lsb_release -a 是檢視linux系統版本時報錯,具體的解決辦法如下:

[root@localhost ~]# lsb_release -a

-bash: lsb_release: command not found

解決方法:yum install redhat-lsb -y

安裝完之後再檢視版本資訊:

[root@localhost upload]# 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 release 6.3 (Final)

Release: 6.3

Codename: Final

http://blog.itblood.com/lsb_release-command-not-found-solution.html

LSB是Linux Standard Base的縮寫,lsb_release指令用來顯示LSB和特定版本的相關資訊。

繼續閱讀