解决-bash: lsb_release: command not found

今天想判断系统版本,没想到没有lsb_release,lsb_release是查看系统版本信息的工具.当然我们也可以用其他的命令来解决,但这个问题还是解决掉.

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

2.使用yum安装lsb
[[email protected] ~]#yum install -y redhat-lsb

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

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

[[email protected] ~]# 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

时间: 2024-08-27 08:20:43

解决-bash: lsb_release: command not found的相关文章

解决 -bash:telnet:command not found

一.背景 telnet命令通常用来远程登录,例如:我今天安装了Memcache服务,想 telnet远程登录查看一下,是否正常启动. 二.问题 当我在linux虚拟机下敲下telnet时,发现提示 -bash:telnet:command not found,如图所示: 我们查看是否有安装telnet-server服务端时,发现是空的 #rpm -q telnet-server 如图所示: 三.解决 第一步:我们先查看linux虚拟机有没有安装telnet客户端和telnet-server 服务

解决bash: mysql: command not found 的方法

[email protected] ~]# mysql -u root-bash: mysql: command not found 原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件.首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令: # ln -s /us

linux环境中安装iotop命令,解决-bash: iotop: command not found问题

需求描述: 今天在测试环境中,准备查看mysql各个线程占用的io的情况,准备使用iotop命令来查看,发现没有这个命令 [[email protected] Packages]# iotop -bash: iotop: command not found 问题解决 1.挂载系统镜像,找到iotop的rpm包,然后进行安装 [[email protected] Packages]# iotop -bash: iotop: command not found [[email protected]

centos解决bash: telnet: command not found...&& telnet: connect to address 127.0.0.1: Connection refused拒绝连接

检查telnet是否已安装: [[email protected] src]# rpm -q telnet-serverpackage telnet-server is not installed[[email protected] src]# telnet 192.168.81.129bash: telnet: command not found... rpm -qa |grep telnet 没有则安装,有跳过 yum install telnet-server -y && yum i

报错解决——-bash: wget: command not found

本人用的是Mac本,在Mac中install的时候经常会用到wget,但是事先没有安装wget的话就会报上面的错误,解决方法就是安装wget. 安装wget 方法一:用传统的安装包方式安装 A - 从ftp://ftp.gnu.org/gnu/wget/下载到最新的wget安装包到本地 B - 然后通过终端tar -zxvf命令解压到我们某个目录 C - 然后依次执行 ./configure 和  make  以及 make install 命令. 方法二:用Homebrew方式安装 Homeb

Linux 环境变量的配置解决(-bash: jps: command not found)问题

找到文件 .bash_profile find / -n .bash_profile 编辑文件把jdk安装的bin目录放到最后面 3.让配置文件马上生效 source /root/.bash_profile 原文地址:http://blog.51cto.com/hqq0000/2177785

Linux 登录 MySQL 报错, 解决bash: mysql: command not found 的方法

原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件. 首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令: ln -s /usr/local/mysql/bin/mysql /usr/bin 原文地址:https://www.cnblogs.com/zhaina

lsb_release: command not found 解决方法(转)

问题:通过lsb_release -a 是查看linux系统版本时报错,具体的解决办法如下: [[email protected] ~]# lsb_release -a-bash: lsb_release: command not found 解决方法:yum install redhat-lsb -y 安装完之后再查看版本信息: [[email protected] upload]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-noa

CentOS 7 命令lsb_release: command not found解决方案

昨天安装了CentOS7,在使用 lsb_release -a命令查询linux系统版本的时候,发现lsb_release这个没装,提示错误是: [[email protected] Desktop]# lsb_release -a bash: lsb_release: command not found... 这里,分享一下查询linux系统版本提示bash:lsb_release:command not found错误解决办法. 1.确认lsb_release是否安装 [[email pro