Want to subscribe to topics you're interested in?
Become a Member

CentOS 7 - Varnish 4 yum install issue

Discussion in 'Introductions' started by Jens Sogaard, Feb 28, 2016.

  1. Jens Sogaard

    Jens Sogaard New Member

    12
    8
    3
    Feb 28, 2016
    Copenhagen, Denmark
    Ratings:
    +9
    Local Time:
    4:58 AM
    1.9.4
    First off, I'm new and AFAIK I can only post here. If possible I guess this should be moved to a subsection?

    So here goes: I'm trying to install varnish but I run into problem installing varnish using yum.
    I tried installing using the guide here for varnish 3.0 - Third Party YUM Repos with Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS That didn't work:
    Error: Package: varnish-3.0.7-1.el6.x86_64 (varnish-3.0)
    Requires: libpcre.so.0()(64bit)
    Error: Package: varnish-3.0.7-1.el6.x86_64 (varnish-3.0)
    Requires: varnish-libs = 3.0.7-1.el6
    Installed: varnish-libs-4.0.3-3.el7.x86_64 (@epel)
    varnish-libs = 4.0.3-3.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
    Available: varnish-libs-3.0.7-1.el6.x86_64 (varnish-3.0)
    varnish-libs = 3.0.7-1.el6
    As I understand centos 7 supports Varnish 4+ and not Varnish 3.0 - So I tried adding repo 4.0:
    $ rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-4.0.el7.rpm
    But that throws this error. Any input on how to resolve this issue which I guess is repo related?
    -> Finished Dependency Resolution
    Error: Package: varnish-4.0.3-1.el7.centos.x86_64 (varnish-4.0)
    Requires: varnish-libs = 4.0.3-1.el7.centos
    Installed: varnish-libs-4.0.3-3.el7.x86_64 (@epel)
    varnish-libs = 4.0.3-3.el7
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    1:58 PM
    Nginx 1.13.x
    MariaDB 5.5
    welcome @Jens Sogaard to Centmin Mod Community :)

    Might want to start a new thread now that you can post in the forum at Other Centmin Mod Installed software | Centmin Mod Community :)

    Threads you might want to participate in ;)
    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:
    Premium Membership
     
  3. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    4:58 AM
    1.9.12
    10.0.23
    Hi and welcome @Jens Sogaard - Your nickname sounds like very danish to me and if so - Velkommen til - and enjoy your stay with us.
     
    Last edited: Feb 28, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    1:58 PM
    Nginx 1.13.x
    MariaDB 5.5
    Or just answer in this thread

    looks like included varnish 3 repo for Centmin Mod only has CentOS 6 el6 packages and no CentOS 7 el7 packages
    run on CentOS 7 i get el6 CentOS 6 packages
    Code:
    yum list varnish --enablerepo=varnish-3.0 --disableplugin=priorities -q
    Available Packages
    varnish.x86_64       3.0.7-1.el6 
    it seems there is no actual CentOS 7 el7 repo file for Varnish 3, so manual install of rpms for Varnish 3 on CentOS 7 are needed Installing Varnish 3 on CentOS 7 - Andrew's Blog
    or you can edit the incorrectly installed CentOS 6 el6 repo file /etc/yum.repos.d/varnish.repo on CentOS 7 installs and change it's contents to point to el7 directory

    /etc/yum.repos.d/varnish.repo
    Code:
    [varnish-3.0]
    name=Varnish 3.0 for Enterprise Linux el7 - $basearch
    baseurl=http://repo.varnish-cache.org/redhat/varnish-3.0/el7/$basearch
    enabled=0
    gpgcheck=0
    #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
    priority=2
    then
    Code:
    yum list varnish --enablerepo=varnish-3.0 --disableplugin=priorities -q
    Available Packages
    varnish.x86_64        3.0.7-1.el7.centos
    looks like you installed EPEL version of varnish 4 instead of official repo version

    so for now you can uninstall / remove varnish completely and edit /etc/yum.repos.d/varnish.repo with
    Code:
    [varnish-3.0]
    name=Varnish 3.0 for Enterprise Linux el7 - $basearch
    baseurl=http://repo.varnish-cache.org/redhat/varnish-3.0/el7/$basearch
    enabled=0
    gpgcheck=0
    #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
    priority=2
    and do install again

    So it's something I need to fix on my end later today :)

    Also might want to use CODE tags for code How to use forum BBCODE code tags :)
     
    Last edited: Feb 28, 2016
  5. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    1:58 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. Jens Sogaard

    Jens Sogaard New Member

    12
    8
    3
    Feb 28, 2016
    Copenhagen, Denmark
    Ratings:
    +9
    Local Time:
    4:58 AM
    1.9.4
    Thanks eva2000. That did the trick.
     
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    1:58 PM
    Nginx 1.13.x
    MariaDB 5.5
    cheers thanks for confirmation :)