查询linux系统版本提示bash:lsb_release:command not found错误解决
时间: 2016-12-05来源:OSCHINA
前景提要
查询linux系统版本提示bash:lsb_release:command not found错误解决
查询linux系统版本的时候提示错误,发现lsb_release这个没装,没办法,装一下吧。这里,分享一下查询linux系统版本提示bash:lsb_release:command not found错误解决办法,也就是安装lsb_release:
1.先检查有没有lsb_release
[root @test ~]# lsb_release -r
-bash: lsb_release: command not found

2.使用yum安装lsb
yum install -y redhat-lsb

3.验证lsb是否已经安装上了 [root@unfvo ~]# lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch: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.5 (Final) Release: 6.5 Codename: Final [root@unfvo ~]#

这里不再提示错误,即说明已安装成功

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行