Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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.

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.