CentOS7使用RPM安装Package遇到 error: Failed dependencies,解决方案。

 

案发现场:

[root@localhost ~]# rpm -ivh /cdrom/Packages/vim-enhanced-7.4.160-2.el7.x86_64.rpm
warning: /cdrom/Packages/vim-enhanced-7.4.160-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
        libgpm.so.2()(64bit) is needed by vim-enhanced-2:7.4.160-2.el7.x86_64
        libperl.so()(64bit) is needed by vim-enhanced-2:7.4.160-2.el7.x86_64
        perl(:MODULE_COMPAT_5.16.3) is needed by vim-enhanced-2:7.4.160-2.el7.x86_64

PS:--nodeps   -- force

加上那两个参数的意义就在于,安装时不再分析包之间的依赖关系而直接安装,也就不会再提示error: Failed dependencies:这样的错误了

 

解决方案:

[root@localhost ~]# rpm -ivh /cdrom/Packages/vim-enhanced-7.4.160-2.el7.x86_64.rpm  --force --nodeps
warning: /cdrom/Packages/vim-enhanced-7.4.160-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:vim-enhanced-2:7.4.160-2.el7     ################################# [100%]
[root@localhost ~]#

由衷的想表示:感谢提供相关文章的博友 Thank you!

版权声明:本文为博主原创文章,转载时请标明作者及出处。

posted @ 2018-03-01 10:51  蒋大美妞  阅读(1526)  评论(0编辑  收藏  举报