1

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

returns

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

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

3 Answers 3

2

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.

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

Try

rpm -qa | grep varnish | xargs rpm -e 

to remove every varnish package installed.

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

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

/etc/yum.repos.d/varnish-4.1.repo 

and any other versions in that directory and start again.

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.