I'm trying to install one package on CentOS 6.7

yum install varnish

but I'm getting that I have a package which doesn't belongs there (is for CentOS 7)

---> Package varnish.x86_64 0:4.1.0-1.el7 will be installed

which creates problems during installation. Trying to update to correct one package

rpm --nosignature -U --oldpackage https://repo.varnish-cache.org/redhat/varnish-4.1.el6.rpm

returns package varnish-release-4.1-2.el6.noarch is already installed

Running rpm -qa | grep varnish gives varnish-release-4.1-2.el6.noarch so how can I remove package for CentOS 7 when is not listed there so I can install correct varnish version?

yum --showduplicates search varnish


varnish-docs-2.1.5-5.el6.x86_64 : Documentation files for varnish varnish-libs-2.1.5-5.el6.i686 : Libraries for varnish varnish-libs-2.1.5-5.el6.x86_64 : Libraries for varnish varnish-libs-devel-2.1.5-5.el6.i686 : Development files for varnish-libs varnish-libs-devel-2.1.5-5.el6.x86_64 : Development files for varnish-libs varnish-2.1.5-5.el6.x86_64 : High-performance HTTP accelerator

still nothing related to varnish.x86_64 0:4.1.0-1.el7

  • What's the output of yum --showduplicates search varnish?
    – Dani_l
    Oct 8, 2015 at 16:14
  • @Dani_l OP updated Oct 8, 2015 at 18:13

3 Answers 3


OK, i have founded varnish 4.1.0-1.el7 in /var/cache/yum/x86_64/6/epel/. Strange. Have removed that folder and reloaded correct package - all went back to normal state.

  • Awesome, I would have never guesses that yum would have a cache! Jan 13, 2016 at 14:21


rpm -qa | grep varnish | xargs rpm -e

to remove every varnish package installed.

  • rpm: no packages given for erase Oct 8, 2015 at 13:51

Looking at the rpms in the repository it seems that rpm varnish-release-4.1-2.el6.noarch.rpm just contains an entry for yum to use. Try removing


and any other versions in that directory and start again.

  • There is no repo with that name. It looks like varnish.x86_64 0:4.1.0-1.el7 came from a RPM Oct 8, 2015 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.