美文网首页
yum的配置依赖问题

yum的配置依赖问题

作者: shuff1e | 来源:发表于2018-03-22 17:43 被阅读17次
  • yum install python-devel
    进行到rpm_check_debug发现
    python=2.7 is needed by (installed) python-six.noarch 0:1.9.0-8.4

  • 但是我的python版本是2.6,这是什么意思?

  • is needed by 说明python2.7是被需要的,说明python-six.noarch 0:1.9.0-8.4依赖于python2.7

但是我从来都没安装过python2.7,那python-six.noarch 0:1.9.0-8.4是如何被安装的呢?

  • 可能之前强行安装过python-six.noarch 0:1.9.0-8.4,也没有管配置依赖的问题,导致现在出错

  • 直接yum remove python-six.noarch,然后yum install python-devel就可以了


While Christian's method is fine, if it were me, I would just run "yum reinstall" on any package which is reporting missing dependencies. What you're looking at is the output of the "yum check" command, which you can run manually. "yum check" is looking at the state of the system's RPMDB and is looking for unfulfilled dependencies on installed packages, in your case, things like R-core and R-devel seem to be missing dependent packages.
This usually happens when you download an RPM file and manually force it in (e.g. "rpm -Uvh --force --nodeps R-*.x86_64.rpm"), but it has been known to happen on packages installed via yum in some corner cases.
The full output from "yum check" is useful to help differentiate those cases, but this advise is generally still good.
yum check dependencies \
  | grep 'has missing requires' \
  | sed 's/.\+has missing requires of //' \
  | sed 's/ [=<>].\+//' \
  | while read dep; do yum -y install "$dep"; done
The first line (whose output is good to inspect before running the whole thing) lists packages with broken dependencies, the second line parses out those with the "missing requires" problem, the third isolates the requires problem itself, the fourth strips version information, and the last conducts the installation. The fourth step is suboptimal, but the format in which the version requirements get reported (e.g. "mono(Mono.Cairo) = ('0', '2.0.0.0', None)" don't seem to be understandable to yum directly.
There has got to be some way yum can traverse the existing dependency tree and just pull in what's missing. If you know it, please post.
yum check dependencies \
  | grep 'has missing requires' \
  | sed 's/.\+has missing requires of //' \
  | sed 's/ [=<>].\+//' \
  | while read dep; do yum -y install "$dep"; done

sed 's/.+has missing requires of //'中.表示任意字符,+是转义+,.+表示至少一个字符
sed 's/ [=<>].+//'中空格然后是[=<>]表示空格后面跟着=或者跟着<或者跟着>

相关文章

  • yum的配置依赖问题

    yum install python-devel进行到rpm_check_debug发现python=2.7 is...

  • 安装Docker

    Centos 7 安装 Docker 安装 yum 仓库配置工具和 Docker 存储依赖yum install ...

  • Caffe安装 - RHEL 7.1

    配置yum源 具体还是配置本地yum源和163源,具体配置流程见Tensorflow安装篇 安装依赖包 下载caf...

  • RHEL 配置第三方源

    RHEL6.2 配置第三方源 yum可以自动解决软件包的依赖问题,简化软件安装,但RHEL的yum源是收费的,无法...

  • 配置centos7的yum源

    yum介绍yellow dog update主要是为了安装rpm依赖关系的yum 源总的配置在/etc/yum.c...

  • yum repo的部分更新

    yum 运行所依赖的几个文件/文件夹有:/etc/yum.repos.d/ 放置 yum repo 的配置文件/e...

  • MySQL_5.7.27 源码安装

    Linux System Environment 一、配置阿里云yum源 二、yum安装所需的依赖包 三、安装CM...

  • linux oracle 11g安装准备

    在系统上检查软件依赖的安装 提示 is not installed 的用yum安装例如: 提示:要提前配置好yum...

  • Ganglia安装及配置

    Ganglia安装及配置 root用户下yum安装所依赖的环境(实际生产环境都已安装) yum -y instal...

  • Centos一键配置Web服务器环境

    安装步骤 注意 1. apt或者yum源必须配置好,参考:《CentOS、Ubuntu、Debian依赖源配置》[...

网友评论

      本文标题:yum的配置依赖问题

      本文链接:https://www.haomeiwen.com/subject/jrxzqftx.html