加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

yum:两个存储库中的相同包,强制从不同的存储库安装包

发布时间:2020-12-15 18:27:42 所属栏目:安全 来源:网络整理
导读:我正在开发一个PostgresDB插件.该插件正在Centos 6.3中的Postgres中运行.为了能够编译我的项目,我必须从epel存储库安装一些库,并从rpmforge安装一些库.有趣的是,一些软件包在两个存储库中都是重复的,例如: # yum whatprovides postgisLoaded plugins: faste
我正在开发一个PostgresDB插件.该插件正在Centos 6.3中的Postgres中运行.为了能够编译我的项目,我必须从epel存储库安装一些库,并从rpmforge安装一些库.有趣的是,一些软件包在两个存储库中都是重复的,例如:
# yum whatprovides postgis

Loaded plugins: fastestmirror,presto,priorities,refresh-packagekit
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirror2.hs-esslingen.de
 * epel: mirror.awanti.com
 * extras: mirror2.hs-esslingen.de
 * rpmforge: mirror.nl.leaseweb.net
 * updates: mirror.netcologne.de
postgis-1.5.3-1.el6.x86_64 : Geographic Information Systems Extensions to
                           : PostgreSQL
Repo        : epel
Matched from:



postgis-1.3.6-1.el6.rf.x86_64 : Geographic Information Systems Extensions to
                              : PostgreSQL
Repo        : rpmforge
Matched from:

现在我的项目编译,但没有与缺少的引用链接:

/usr/pgsql-9.1/lib/postgis-1.5.so: undefined reference to `accumArrayResult'
/usr/pgsql-9.1/lib/postgis-1.5.so: undefined reference to `TupleDescGetAttInMetadata'
/usr/pgsql-9.1/lib/postgis-1.5.so: undefined reference to `repalloc'
/usr/pgsql-9.1/lib/postgis-1.5.so: undefined reference to `SPI_exec'
/usr/pgsql-9.1/lib/postgis-1.5.so: undefined reference to `init_MultiFuncCall'

这很可能意味着,有些软件包混淆了:有些是从一个repo安装,有些是从另一个repo安装.

问题:(i)如何告诉yum从一个仓库安装包,然后从另一个仓库重新安装(以查看链接错误是否会消失); (ii)如何从一个仓库中查看系统上的哪些包装以及另一个仓库中的哪些包装?

安装的yum list会告诉你安装给定包的repo,例如:
bonnie++.x86_64                     1.96-2.el6                  @epel/6.2

要选择要安装的变体,只需使用whatprovides列表中要安装的变体的确切名称:

yum install postgis-1.3.6-1.el6.rf.x86_64

有关更多信息,请参阅man yum的指定包名称部分.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读