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 ~]#

  • 相关阅读:
    Finer Resolution Observation and Monitoring -Global Land Cover更精细的分辨率观测和监测-全球土地覆盖
    MapServer教程3
    手写Tomcat源码
    室内无线局域网
    基于点云的3ds Max快速精细三维建模方法及系统的制作方法 插件开发
    Web Mapping Illustrated Using Open Source GIS Toolkits
    apache Internal Server Error 解决方法
    php命令行工具
    小程序:将gbk转为utf-8
    java FileUtil(文件操作类)
  • 原文地址:https://www.cnblogs.com/xiaochina/p/6159905.html
Copyright © 2011-2022 走看看