无法在Centos 7上安装Varnish 3

时间:2015-01-23 03:50:20

标签: centos redhat varnish yum

Varnish 3包在repo /etc/yum.repos.d/varnish.repo中 当我做yum --enablerepo=varnish install varnish时。它说repo不存在。

[root@VR1gb yum.repos.d]# rpm -qf varnish.repo 
varnish-release-3.0-1.el6.noarch

[root@VR1gb yum.repos.d]# yum --enablerepo=varnish-3.0 install varnish
It prompts to install Varnish 4 again if I do that. Same thing as I do.
[root@VR1gb yum.repos.d]# yum install varnish

关于清漆页面的说明显然不起作用。 https://www.varnish-cache.org/installation/redhat

在varnish.repo

[root@VR1gb yum.repos.d]# cat varnish.repo 
[varnish-3.0]
name=Varnish 3.0 for Enterprise Linux el6 - $basearch
baseurl=http://repo.varnish-cache.org/redhat/varnish-3.0/el6/$basearch
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH

yum --disablerepo = * --enablerepo = varnish-3.0 install varnish

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package varnish.x86_64 0:3.0.6-1.el6 will be installed
--> Processing Dependency: varnish-libs = 3.0.6-1.el6 for package: varnish-3.0.6-1.el6.    x86_64
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.6-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0)
           Requires: varnish-libs = 3.0.6-1.el6
           Installed: varnish-libs-4.0.2-1.el7.x86_64 (@epel)
               varnish-libs = 4.0.2-1.el7
           Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0)
               varnish-libs = 3.0.3-0.rc1.el6
           Available: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0)
               varnish-libs = 3.0.3-1.el6
           Available: varnish-libs-3.0.4-1.el6.x86_64 (varnish-3.0)
               varnish-libs = 3.0.4-1.el6
           Available: varnish-libs-3.0.5-1.el6.x86_64 (varnish-3.0)
               varnish-libs = 3.0.5-1.el6
           Available: varnish-libs-3.0.6-1.el6.x86_64 (varnish-3.0)
               varnish-libs = 3.0.6-1.el6
Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0)
           Requires: libpcre.so.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

[root @ VR1gb yum.repos.d] #rpm -qa' varnish '

varnish-release-3.0-1.el6.noarch

[root @ VR1gb yum.repos.d] #service varnish start

Starting varnish (via systemctl):  

0 个答案:

没有答案