不同存储库中的不同包版本

不同存储库中的不同包版本

遵循以下建议在 CentOS 7 上使用 Awesome 窗口管理器,我安装了 fedora 19 存储库,这样我就可以得到惊人的在 CentOS7 上工作。但是,当我运行时yum update,我收到此错误:

Error: Package: brlapi-0.6.0-5.fc19.i686 (fedora)
           Requires: brltty = 4.5-5.fc19
           Installed: brltty-4.5-8.el7.x86_64 (@anaconda)
               brltty = 4.5-8.el7
           Available: brltty-4.5-5.fc19.x86_64 (fedora)
               brltty = 4.5-5.fc19
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

更多信息:

; sudo yum list installed | grep  brl     
127:brlapi.x86_64                          0.6.0-8.el7                     @anaconda
128:brltty.x86_64                          4.5-8.el7                       @anaconda
1254:python-brlapi.x86_64                  0.6.0-8.el7                    @anaconda

显然,这两个存储库存在冲突:如何解决这个问题呢?

按照要求:

; sudo yum repolist all
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirroring.pulsant.co.uk
 * epel: mirror-fr2.bbln.org
 * extras: mirror.ukhost4u.com
 * updates: mirror.ukhost4u.com
repo id                       repo name                          status
base/7/x86_64                 CentOS-7 - Base                    enabled:  8,465
base-debuginfo/x86_64         CentOS-7 - Debuginfo               disabled
base-source/7                 CentOS-7 - Base Sources            disabled
centosplus/7/x86_64           CentOS-7 - Plus                    disabled
centosplus-source/7           CentOS-7 - Plus Sources            disabled
epel/x86_64                   Extra Packages for Enterprise Linu enabled:  6,418
epel-debuginfo/x86_64         Extra Packages for Enterprise Linu disabled
epel-source/x86_64            Extra Packages for Enterprise Linu disabled
epel-testing/x86_64           Extra Packages for Enterprise Linu disabled
epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Linu disabled
epel-testing-source/x86_64    Extra Packages for Enterprise Linu disabled
extras/7/x86_64               CentOS-7 - Extras                  enabled:     77
extras-source/7               CentOS-7 - Extras Sources          disabled
fasttrack/7/x86_64            CentOS-7 - fasttrack               disabled
fedora/x86_64                 Fedora 19 - x86_64                  enabled: 36,253
updates/7/x86_64              CentOS-7 - Updates                 enabled:  1,186
updates-source/7              CentOS-7 - Updates Sources         disabled
repolist: 52,399

这是/etc/yum.repos.d/Fedora.repo文件:

[fedora]
name=Fedora 19 - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/19/Everything/$basearch/os/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-19

答案1

百胜餐饮集团尝试安装:

brlapi-0.6.0-5.fc19.i686 (fedora)

来自@Fedorra 仓库:

Available: brltty-4.5-5.fc19.x86_64 (fedora)

虽然已经安装了一个:

Installed: brltty-4.5-8.el7.x86_64 (@anaconda)

来自@anaconda 仓库。

您可以尝试使用禁用的存储库更新@fedora:

yum update --disablerepo="fedora"

或者安装包yum-plugin-priorities(事实上 - 你必须使用它,我很惊讶 - 为什么它仍然没有在默认的 YUM 安装中):

yum install yum-plugin-priorities

然后ptiorities在每个 repo 配置中设置:

# grep -r "priority=" /etc/yum.repos.d/
/etc/yum.repos.d/gf.repo:priority=20
/etc/yum.repos.d/MariaDB.repo:priority=1
/etc/yum.repos.d/epel-testing.repo:priority=20
/etc/yum.repos.d/rpmforge.repo:priority=20
/etc/yum.repos.d/rpmforge.repo:priority=20

例如:

# head /etc/yum.repos.d/gf.repo
[gf]
name=Ghettoforge packages that won't overwrite core distro packages.
baseurl=http://mirror.symnds.com/distributions/gf/el/6/gf/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-gf.el6
failovermethod=priority
priority=20

查找更多关于CentOS 维基

相关内容