Bash:mdadm:未找到命令

1、配置yum
2、yum search mdadm
3、yum install -y 包安装

[root@test ~]# yum search mdadm
已加载插件:product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
=========================================== N/S matched: mdadm ===========================================
mdadm.x86_64 : The mdadm program controls Linux md devices (software RAID arrays)

名称和简介匹配 only,使用“search all”试试。

[root@test ~]# cd /etc/yum.repos.d/
[root@test yum.repos.d]# ll
总用量 8
-rw-r–r--. 1 root root 358 6月 11 10:04 redhat.repo
-rw-r–r--. 1 root root 64 6月 11 10:03 rhel7.repo
[root@test yum.repos.d]# cat rhel7.repo
[rhel7]
name=rhel7
baseurl=file:///mnt/iso
gpgcheck=0
enabled=1
[root@test yum.repos.d]# mount /dev/cdrom /mnt/iso
mount: /dev/sr0 写保护,将以只读方式挂载
[root@test yum.repos.d]# yum install -y mdadm.x86_64
已加载插件:product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel7 | 4.1 kB 00:00:00
正在解决依赖关系
–> 正在检查事务
—> 软件包 mdadm.x86_64.0.3.3.2-7.el7 将被 安装
–> 正在处理依赖关系 libreport-filesystem,它被软件包 mdadm-3.3.2-7.el7.x86_64 需要
–> 正在检查事务
—> 软件包 libreport-filesystem.x86_64.0.2.1.11-30.el7 将被 安装
–> 解决依赖关系完成

依赖关系解决

正在安装:
mdadm x86_64 3.3.2-7.el7 rhel7 393 k
为依赖而安装:
libreport-filesystem x86_64 2.1.11-30.el7 rhel7 36 k

==========================================================================================================
安装 1 软件包 (+1 依赖软件包)


总计 10 MB/s | 429 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : libreport-filesystem-2.1.11-30.el7.x86_64 1/2
正在安装 : mdadm-3.3.2-7.el7.x86_64 2/2
验证中 : mdadm-3.3.2-7.el7.x86_64 1/2
验证中 : libreport-filesystem-2.1.11-30.el7.x86_64 2/2

已安装:
mdadm.x86_64 0:3.3.2-7.el7

作为依赖被安装:
libreport-filesystem.x86_64 0:2.1.11-30.el7

完毕!
[root@test yum.repos.d]#

  • 5
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值