2014-02-16 155 views
0

我一直在試圖解決這個問題,但沒有這樣的運氣。我試圖從EPEL倉庫安裝phpmyadmin和其他軟件包,但命令(yum install phpmyadmin)以「無包phpmyadmin可用」返回。我已經安裝和卸載了無數次EPEL,但這也沒有幫助。任何幫助非常感謝。YUM沒有在CentOS 6上安裝EPEL的某些軟件包

$百勝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 

$貓/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 
+0

yum list phpMyAdmin *'輸出什麼? – SparKot

+0

$百勝名單phpMyAdmin的* 加載的插件:fastestmirror 加載速度鏡從緩存HOSTFILE *基地:centos.someimage.com * EPEL:epel.mirror.constant.com *演員:​​mirror.net.cen.ct .GOV *雷米:remi.mirrors.hostinginnederland.nl * rpmforge軟件:repoforge.mirror.constant.com *更新:mirror.atlanticmetro.net * webtatic:us-east.repo.webtatic.com 錯誤:沒有匹配軟件包到列表 – user2879373

回答

3

[jhughes @ jhughes〜] $ sudo的yum的列表phpMyAdmin的 加載的插件:fastestmirror,刷新PackageKit將 加載鏡像緩存從HOSTFILE 速度*基地: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

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

這意味着在EL6的EPEL中,phpMyAdmin

你在/etc/yum.conf文件中有exclude =行嗎?

做一個yum乾淨所有命令並再試一次。

+0

非常感謝。 yum clean都沒有幫助,但conf中的確有一條排除線。我評論說,現在它像一個魅力。再次感謝。 – user2879373

+0

非常感謝!我一直在努力做到這一點......它做到了! –

2

顯然百勝是區分大小寫的。這是說,嘗試用:

# yum install phpMyAdmin

+1

我已經試過了,並且它返回相同的錯誤:「沒有包phpMyAdmin可用。」 – user2879373

0

您需要啓用epel和epel-source。