zoukankan      html  css  js  c++  java
  • 解决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 ~]#

  • 相关阅读:
    [python] 类组合与聚合关系
    [python] 伪私有属性,防止变量名冲突
    [vim] 配置文件之常用命令模式
    [VIM] 编辑器---多行注释和取消注释及多行复制和黏贴
    [Visual Studio Code] 执行python
    [C] 编译器codeblocks安装注意
    字符串全排列
    集合全量子集提取
    random函数详解
    Solr常用命令总结
  • 原文地址:https://www.cnblogs.com/xiaochina/p/6159905.html
Copyright © 2011-2022 走看看