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?

link|improve this question

33% accept rate
Do whatever you did to install them, but backwards. – Ignacio Vazquez-Abrams Mar 8 '11 at 5:13
feedback

2 Answers

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.

link|improve this answer
feedback

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"

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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