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

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

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

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • forfiles 批处理删除文件

    forfiles 批处理删除文件1 用批处理文件删除当前目录下 7 天以前的扩展名为 bkf 文件 以当前系统时间为基准 示例 forfiles m bkf d 7 c cmd cdel file f 2 forfiles 自动删除 7 天前文件 以当前系统时间为基准 示例 forfiles p d test s m d 7 c cmd cdel path d test 换成你要的目录路径 d 7 指删除 7 天以前文件 forfiles p

    2025年6月17日
    3
  • goland 永久激活 3月最新注册码

    goland 永久激活 3月最新注册码,https://javaforall.net/100143.html。详细ieda激活码不妨到全栈程序员必看教程网一起来了解一下吧!

    2022年3月15日
    37
  • Linux命令-fsync[通俗易懂]

    Linux命令-fsync[通俗易懂]对fsync命令只做简单介绍,不做详细原理解释。通过man命令查看fsync()函数有以下共识:1、**fsync(2)**函数是属于系统核心函数;2、unix系统下函数标注不同数值的含义1)、用户在shell环境可以使用的指令或可执行文件;2)、系统核心提供的可调用的函数与工具;3)、常用函数、函数库,大部分是C的函数库;4)、设备驱动程序,通常在/dev下;5)、配置文件或某…

    2022年5月6日
    298
  • Java安全之JBoss反序列化漏洞分析

    Java安全之JBoss反序列化漏洞分析0x00前言看到网上的Jboss分析文章较少,从而激发起了兴趣。前段时间一直沉迷于工具开发这块,所以打算将jboss系列反序列化漏洞进行分析并打造成GUI

    2021年12月13日
    41
  • 原生table样式示例_table好看的css样式

    原生table样式示例_table好看的css样式<div><divclass=”ui-table-head”><tableclass=”ui-table”><colgroup><colstyle=”width:10%”><colstyle=”width:55%”>.

    2022年9月15日
    3
  • IDEA热部署无效

    IDEA热部署无效遇到这样的问题,我觉既不是没有设置“更新类和资源”,也不是啥插件问题而是没有以debug模式运行!!以run模式运行的话热部署是不起作用的。

    2022年6月6日
    133

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

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