yum安装依赖查找

1 篇文章 0 订阅

@TOC

背景

在centos7 上离线安装 mysql-8.0.30-1.el7.x86_64.rpm-bundle.tar
大体按依赖顺序

rpm -ivh mysql-community-common-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-embedded-compat-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-8.0.13-1.el7.x86_64.rpm
rpm -ivh mysql-community-test-8.0.13-1.el7.x86_64.rpm

当安装到 test 时,报缺少依赖库 perl(Test::More),直接用 yum install perl(Test::More)直接就报错,怎么正确找到对应依赖库成了难题,这里做个记录

查找依赖库

  1. 使用网站:https://rhel.pkgs.org/
  2. 直接查找模块:https://rhel.pkgs.org/7/mysql-8.0-x86_64/mysql-community-test-8.0.30-1.el7.x86_64.rpm.html
  3. 找到其依赖:Requires 85页面有perl(Test::More)链接
  4. 定位perl(Test::More):https://centos.pkgs.org/7/centos-x86_64/perl-Test-Simple-0.98-243.el7.noarch.rpm.html
  5. 找到其安装方法:Install Howto页面yum install perl-Test-Simple即可解决。

这个安装模块,和报错名称完全就两码事

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

求知向道

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值