Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Webtatic has two yum repositories, one for CentOS 5 and one for 6. Both work on CentOS 6, but I'm having problems switching from the one to the other.

(Should you be interested in why I want to switch: a production server currently uses the former, but requires packages that only the latter provides.)

Installing the one repository provides a package called php54w:

rpm -Uvh
yum list php54w

(Output: php54w.x86_64 5.4.15-1.w6 webtatic)

After what I believe qualifies as removing the repository, the package is gone:

yum remove webtatic-release-6-3.noarch
yum clean all
yum list php54w

(Output: Error: No matching Packages to list)

Now the other repository can be installed:

rpm -Uvh

But now, this repository provides the same php54w package, though that package doesn't exist in this repository:

yum list --enablerepo=webtatic list php54w

(Output: php54w.x86_64 5.4.15-1.w6 webtatic)

This seems to me like the previously installed repository is still being used somehow. How can I truly remove the previously installed repository?

(Thanks, Michael Hampton) No PHP package is installed during the test performed above.

The repositories have the same name, in the sense that they both exist in /etc/yum.repos.d/webtatic.repo.

share|improve this question
You are seeing packages in yum output which are already installed. It even says so. – Michael Hampton May 21 '13 at 23:34
@Michael That wasn't it, but it would've been a good spot. – pimmhogeling May 21 '13 at 23:57
OK, then what exactly was the output? – Michael Hampton May 22 '13 at 0:00
@MichaelHampton Outputs were added to the question. – pimmhogeling May 22 '13 at 0:08
up vote 0 down vote accepted

Yum does a check on /etc/yum.repos.d/webtatic.repo to see if it has changed, but this appears to not be happening when this file is installed by the second rpm -Uvh command, and yum clean all does not stop this

Webtatic EL6:

-rw-r--r-- 1 root root 805 May 16 22:46 /etc/yum.repos.d/webtatic.repo

Webtatic 5:

-rw-r--r-- 1 root root 834 May 16 22:41 /etc/yum.repos.d/webtatic.repo

Perhaps this is because the Webtatic 5 package was built earlier than 6.

I could add to the build process something that would update the timestamp, however there was never any plan to have Webtatic 5 support CentOS 6, so you may get other unexpected results if you try to use it on that version.

A workaround for now would be to force Yum to spot the file has changed:

touch /etc/yum.repos.d/webtatic.repo
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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