When I try:
yum install httpd
I get the error:
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cloud.aliyuncs.com
* extras: mirrors.cloud.aliyuncs.com
* updates: mirrors.cloud.aliyuncs.com
No package httpd available.
Error: Nothing to do
2
Answers
httpd
package can be installed from default CentOS repositories, ‘base’ and ‘updates’ (for a newer version).Make sure that you have repository file
/etc/yum.repos.d/CentOS-Base.repo
or create it manually, with, at very least, the following content:Then do:
We ran into this issue as well and found the following in yum.conf:
Removing httpd from there let us install it