解决Centos/Redhat,命令不存在

解决Centos/Redhat,命令不存在

大家好,又见面了,我是全栈君。

[root@26 ~]# lsb_release                    #不存在
-bash: lsb_release: command not found    
[root@26 ~]# yum provides */lsb_release           #查询命令的依赖rpm包
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
mvpbang | 4.0 kB 00:00 …
redhat-lsb-core-4.0-7.el6.centos.i686 : LSB base libraries support for CentOS
Repo : mvpbang
Matched from:
Filename : /usr/bin/lsb_release

 

redhat-lsb-core-4.0-7.el6.centos.x86_64 : LSB base libraries support for CentOS
Repo : mvpbang
Matched from:
Filename : /usr/bin/lsb_release

 

[root@26 ~]# yum install -y redhat-lsb-core     #安装提示的依赖包
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
redhat-lsb-core x86_64 4.0-7.el6.centos mvpbang 25 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 25 k
Installed size: 22 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : redhat-lsb-core-4.0-7.el6.centos.x86_64 1/1
Verifying : redhat-lsb-core-4.0-7.el6.centos.x86_64 1/1

Installed:
redhat-lsb-core.x86_64 0:4.0-7.el6.centos

Complete!
[root@26 ~]# lsb_release                        #命令可以执行!!!
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
[root@26 ~]#

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/108724.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

  • 光纤交换机如何划分zone[通俗易懂]

    光纤交换机如何划分zone[通俗易懂]说明:1.不同厂商的光纤交换机zone的划分类似,所以只要掌握了一种其他则可以触类旁通。2.如果想使用图形界面对光纤交换机划分zone,在pc端必须安装javawebstart,初次访问阵列它会提示下载地址。一.规划在对光纤交换机进行设置前,一定要做好相应的规划,比如那些端口要连接主机,那些端口要连接阵列,考虑到减少“乒乓效应”及平衡负载,当我们划分zone时最好用一对一关系,即一个zone只接一个主机一个阵列,而不是划分一个大的zone阵列主机都插…

  • phpstrom 激活码2021【在线破解激活】

    phpstrom 激活码2021【在线破解激活】,https://javaforall.cn/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

  • MATLAB GUI实现计算器(设计)「建议收藏」

    MATLAB GUI实现计算器(设计)「建议收藏」1.先打开matlab新建GUI文件2.选择路径(左边是默认的不用改)然后点击ok3.此时界面会弹出一个小框4.建立计算器界面(贴上我设计的界面,不许嘲笑我的设计)5.细致讲解一下,这里的按键和显示框的是怎么实现的A.显示框:选择edittext在右边屏幕拉取即可如图所示,新建两个即可,左边作为输入屏,右边作为输入结果的显示屏双击该框,…

  • Python读取h5文件_html python

    Python读取h5文件_html python原文链接:https://blog.csdn.net/leibaojiangjun1/article/details/53635353 h5接受的数据是矩阵跟mat方法一致,但是具有更强的压缩性能使用hdf5依赖于python的工具包:h5pyimporth5py #导入工具包importnumpyasnp#HDF5的写入:imgData=np.zeros((30,3…

  • tasker 短信转邮件_ifttt转发短信到邮箱

    tasker 短信转邮件_ifttt转发短信到邮箱1.环境及工具测试手机华为P9:EMUI8(Android8)Tasker版本:5.12.21下载地址:https://tasker.joaoapps.com/download.htmlSendSilentMail插件版本:4.52下载地址:https://m.allfreeapk.com/locale-sendsilentmail-plug-in,313058/QQ邮箱2个:一个发邮件,一个收邮件2…

    2022年10月13日
  • Jquery——基本过滤选择器

    Jquery——基本过滤选择器

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号