lsb_release: command not found 解决方法

问题: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

posted on 2014-04-17 19:31  低级码农  阅读(6570)  评论(0编辑  收藏  举报

导航