【问题标题】:YUM not installing certain packages from EPEL on CentOS 6YUM 没有在 CentOS 6 上从 EPEL 安装某些软件包
【发布时间】:2015-11-21 01:30:35
【问题描述】:

我整天都在尝试解决这个问题,但没有这样的运气。我正在尝试从 EPEL 存储库安装 phpmyadmin 和其他软件包,但命令 (yum install phpmyadmin) 返回“没有可用的软件包 phpmyadmin”。我已经无数次地安装和卸载了 EPEL,但这也无济于事。非常感谢任何帮助。

$ yum repolist

 Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
  * base: centos.someimage.com
  * epel: epel.mirror.constant.com
  * extras: mirror.net.cen.ct.gov
  * remi: rpms.famillecollet.com
  * rpmforge: repoforge.mirror.constant.com
  * updates: mirror.atlanticmetro.net
  * webtatic: us-east.repo.webtatic.com
 repo id        repo name                                               status
 base           CentOS-6 - Base                                          6,281+86
 epel           Extra Packages for Enterprise Linux 6 - x86_64          9,660+814
 extras         CentOS-6 - Extras                                              14
 remi           Les RPM de remi pour Enterprise Linux 6 - x86_64        177+1,241
 rpmforge       RHEL 6 - RPMforge.net - dag                              4,559+91
 updates        CentOS-6 - Updates                                         457+61
 webtatic       Webtatic Repository EL6 - x86_64                           14+148
 repolist: 21,162

$ cat /etc/yum.repos.d/epel.repo

 [epel]
 name=Extra Packages for Enterprise Linux 6 - $basearch
 #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
 failovermethod=priority
 enabled=1
 gpgcheck=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

 [epel-debuginfo]
 name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
 #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-    6&arch=$basearch
 failovermethod=priority
 enabled=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
 gpgcheck=1

 [epel-source]
 name=Extra Packages for Enterprise Linux 6 - $basearch - Source
 #baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
 failovermethod=priority
 enabled=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
 gpgcheck=1

【问题讨论】:

  • yum list phpMyAdmin* 输出什么?
  • $ yum list phpMyAdmin* 加载的插件:fastestmirror 从缓存的主机文件加载镜像速度 * base: centos.someimage.com * epel: epel.mirror.constant.com * extras: mirror.net.cen。 ct.gov * remi:remi.mirrors.hostinginnederland.nl * rpmforge:repoforge.mirror.constant.com * 更新:mirror.atlanticmetro.net * webtatic:us-east.repo.webtatic.com 错误:没有要列出的匹配包

标签: phpmyadmin centos repository yum


【解决方案1】:

[jhughes@jhughes ~]$ sudo yum list phpMyAdmin 加载的插件:fastestmirror、refresh-packagekit 从缓存的主机文件加载镜像速度 * 基地:192.168.0.10 * elrepo 内核:mirror.symnds.com * epel:mirror.symnds.com * 额外:192.168.0.10 * 更新:192.168.0.10 可用套餐 phpMyAdmin.noarch 3.5.8.2-1.el6 epel

==============

这意味着 phpMyAdmin 在 EPEL for EL6 中。

您的 /etc/yum.conf 文件中有 exclude= 行吗?

执行 yum clean all 命令并重试。

【讨论】:

  • 非常感谢。 yum clean all 没有帮助,但 conf 中确实有一个排除行。我把它注释掉了,现在它就像一个魅力。再次感谢。
  • 非常感谢!我一直在尝试这样做……它成功了!
【解决方案2】:

显然 yum 区分大小写。也就是说,尝试使用:

# yum install phpMyAdmin

【讨论】:

  • 我也已经尝试过了,它返回相同的错误:“没有可用的包 phpMyAdmin。”。
【解决方案3】:

您需要启用 epel 和 epel-source。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-16
    • 1970-01-01
    • 2014-09-14
    • 2014-10-26
    • 1970-01-01
    • 2012-03-27
    • 2016-08-05
    • 2016-03-09
    相关资源
    最近更新 更多