Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I've installed CentOS, along with some applications such as Apache and PHP.

How do I remove the currently installed versions so that I can install the correct versions using yum?

share|improve this question
Do whatever you did to install them, but backwards. – Ignacio Vazquez-Abrams Mar 8 '11 at 5:13
up vote 1 down vote accepted

Whatever version of each package you got from the installer, that's the only major version release of that package that's available for that version of CentOS, at least from CentOS itself; it follows the Redhat Enterprise Linux package set, which typically lags behind the latest and greatest for any given package by a few versions in order to provide a known-stable release.

That said, to remove a package you can use yum remove packagename, where packagename can be found in the rpm database with rpm -qa.

share|improve this answer

Search the required package with the command:

rpm -qa | grep -i "package name"

and simply type the command yum remove as shown below:

yum remove "package name"

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.