Portal Home > Knowledgebase > Articles Database > No package httpd available. Centos


No package httpd available. Centos




Posted by ckinikar, 12-28-2009, 03:36 PM
Hi, Server O.S. Centos 5.4 32 bit, I want to reinstall httpd and I have removed httpd by running command "yum remove httpd" when tried to install again following config displayed. I have tried as much I can, rebuild rpm database also, still problem not solved. I am getting same message with any other package like mysql. php etc. to install "No package packagename available." I have ssh root access only. Kindly suggest me solution.

Posted by khunj, 12-28-2009, 03:40 PM
This should solve the problem :

Posted by adminpaul, 12-28-2009, 08:12 PM
Hi, Can you paste the content of the file /etc/yum.repos.d/CentOS-Base.repo

Posted by kdmitchell, 12-28-2009, 08:52 PM
That indicates that the repo that you are using doesn't have the version of that package. Either the testing repo or the centos-base repo should have this however. You can also give this repo a try as well, works wonders when I run into dead ends. http://bluhaloit.wordpress.com/2008/...-centos-5-etc/

Posted by PCS-Chris, 12-28-2009, 09:03 PM
First of all, apache is part of the default CentOS repositories. So I suggest you drill down to the original problem and fix it, instead of trying other yum repositories. Verify the httpd package is completely gone rpm -qa | grep httpd If you get no result thats good. ls /etc/yum.repos.d Can you see a CentOS-Base.repo file? If yes, cat /etc/yum.conf Is there an exclude= line with httpd on it?

Posted by ckinikar, 12-29-2009, 12:14 AM
Hi, I have tried given code, still problem not solved. Thanks.

Posted by ckinikar, 12-29-2009, 12:18 AM
Please find code in /etc/yum.repos.d/CentOS-Base.repo Thanks.

Posted by ckinikar, 12-29-2009, 12:25 AM
Hi, I have verified that httpd package is completely removed. I have shown CentOS-Base.repo file contents in the last quote. Kindly check cat /etc/yum.conf contents given bellow. Kindly suggest the solution. Thanks.

Posted by madaboutlinux, 12-29-2009, 04:48 AM
Your "exclude=" line in /etc/yum.conf contains 'httpd'. Remove httpd from the exclude line and try installing http using yum once again.

Posted by PCS-Chris, 12-29-2009, 09:26 AM
Based on your /etc/yum.conf file this looks like you are running cPanel on your system. In which case you should compile Apache using easyapache, and shouldnt install it through Yum at all. Run /scripts/easyapache and follow the instructions

Posted by madaboutlinux, 12-29-2009, 09:30 AM
Right, it does look like it's cPanel. Apache should be there by default, check the Apache status and see what you receive: /etc/init.d/httpd status

Posted by ckinikar, 12-29-2009, 10:36 AM
Thanks a lot, problem solved. Thanks again.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.