解决-bash: lsb_release: command not found

系统:centos 6.4
1.先检查有没有lsb_release
[root@test ~]# lsb_release -r
-bash: lsb_release: command not found

2.使用yum安装lsb
[root@localhost ~]#yum install -y redhat-lsb

3.验证lsb是否已经安装上了
[root@localhost ~]# lsb_release -r
Release: 6.4

 

可以看到已经成功安装上了lsb了.

[root@localhost ~]# 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.4 (Final)
Release: 6.4
Codename: Final

猜你喜欢

转载自www.cnblogs.com/qianjinyan/p/11278821.html