Cannot install Varnish 3.x on CentOs 7

lrkwz asked:

I have a freshly installed Centos7 and I wish to install Varnish 3.0; according with https://www.varnish-cache.org/installation/redhat I have installed the repo varnish-3.0.el6.rpm but …

[root@reverse ~]# 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.7-1.el6 will be installed
--> Processing Dependency: varnish-libs = 3.0.7-1.el6 for package:   varnish-3.0.7-1.el6.x86_64
--> Processing Dependency: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit) for package: varnish-3.0.7-1.el6.x86_64
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.7-1.el6.x86_64
--> Processing Dependency: libvarnishapi.so.1()(64bit) for package: varnish-3.0.7-1.el6.x86_64
--> Running transaction check
---> Package varnish.x86_64 0:3.0.7-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.7-1.el6.x86_64
---> Package varnish-libs.x86_64 0:3.0.7-1.el6 will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-libs-3.0.7-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: varnish-3.0.7-1.el6.x86_64 (varnish-3.0)
       Requires: libpcre.so.0()(64bit)
Error: Package: varnish-libs-3.0.7-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

How can I solve this?

My answer:


You’re trying to install packages meant for EL6 onto EL7. This will not work and there is no way to make it work. They are not compatible.

If you really want to run an old Varnish version, then use EL6 to begin with. The version of varnish included with EPEL for EL7 is 4.0, so it is not likely there will ever be 3.0 built for EL7.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.