解决-bash: lsb_release: command not found
2015-02-09 00:00
525 查看
摘要: 解决-bash: lsb_release: command not found
今天想写个shell脚本来判断系统版本,没想到没有lsb_release,lsb_release是查看系统版本信息的工具.当然我们也可以用其他的命令来解决,但这个问题还是解决掉.
系统:centos 5.5
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
@test ~]# lsb_release -r
Release: 5.5
可以看到已经成功安装上了lsb了.
今天想写个shell脚本来判断系统版本,没想到没有lsb_release,lsb_release是查看系统版本信息的工具.当然我们也可以用其他的命令来解决,但这个问题还是解决掉.
系统:centos 5.5
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
@test ~]# lsb_release -r
Release: 5.5
可以看到已经成功安装上了lsb了.
相关文章推荐
- 查询linux系统版本提示bash:lsb_release:command not found错误解决
- lsb_release: command not found解决方法
- lsb_release: command not found 解决
- lsb_release: command not found 解决
- lsb_release: command not found 解决
- lsb_release: command not found 解决方法(转)
- lsb_release: command not found 解决
- lsb_release: command not found 解决方法
- lsb_release: command not found 解决
- 解决-bash: lsb_release: command not found
- lsb_release: command not found 解决
- linux系统中shell中执行命令是报:bash: ifconfig: command not found错误的解决办法
- bash: command not found 解决办法
- bash: useradd: command not found如何解决....(by 星空武哥)
- bash: sqlplus: command not found 解决方法
- red hat 输入ifconfig bash: ifconfig: command not found的解决办法
- bash: ifconfig: command not found 解决办法
- bash: sqlplus: command not found 解决方法
- 安装NDK:Cygwin中出现-bash: $'\r': command not found 错误 的解决办法
- bash: service: command not found 错误的解决方法