Can’t Do A Yum Install Of Apache C7
Hey all,
I’m logged into a CentOS 7 box and trying to install apache. Not having any luck, as it’s not being found. Which is odd, because I have the right repos enabled:
[root@hadoop1:/etc/yum.repos.d] #cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo)
[root@hadoop1:/etc/yum.repos.d] #yum repolist Loaded plugins: amazon-id, rhui-lb repo id repo name
status
*epel/x86_64* Extra Packages for Enterprise Linux 7 – x86_64 7,454
*remi * Les RPM de remi pour Enterprise Linux – x86_64 1,862
*remi-php56 * Les RPM de remi de PHP 5.6
pour Enterprise Linux 7 – x86_64 277
*rpmforge* RHEL 7Server – RPMforge.net –
dag 245
*webtatic*/x86_64 Webtatic Repository EL7 –
x86_64 325
repolist: 10,163
And when I go to install, this is what I find:
[root@hadoop1:/etc/yum.repos.d] #yum install httpd Loaded plugins: amazon-id, rhui-lb No package httpd available. Error: Nothing to do
Does anyone have any ideas why this is failing?
Thanks, Tim
5 thoughts on - Can’t Do A Yum Install Of Apache C7
Apparently you don’t.
I don’t see the base or the updates repo listed in your message.
Available Packages Name : httpd Arch : x86_64
Version : 2.4.6
Release : 19.el7.CentOS
Size : 2.7 M
Repo : updates/7/x86_64
Summary : Apache HTTP Server URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
As you can see, the latest version of httpd is in the Updates repo. Try installing that repo and then your system will be able to find httpd.
its in the EL7 Base (and Updates) repositories, which seem to be disabled on your system.
btw, I would NOT enable REMI, RPMFORGE *and* EPEL at the same time unless you want to get into some gnarly package conflicts. I don’t even know what webtatic is…
[root@c7test1 ~]# yum install httpd Loaded plugins: fastestmirror base | 3.6 kB 00:00:00
epel/x86_64/metalink | 14 kB 00:00:00
epel | 4.4 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): epel/x86_64/primary_db | 4.0 MB 00:00:01
(2/2): updates/7/x86_64/primary_db | 6.6 MB 00:00:01
(1/2): epel/x86_64/updateinfo | 317 kB 00:00:00
(2/2): epel/x86_64/pkgtags | 1.4 MB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirror.lax.hugeserver.com
* epel: linux.mirrors.es.net
* extras: mirrors.usc.edu
* updates: mirrors.usc.edu Resolving Dependencies
–> Running transaction check
—> Package httpd.x86_64 0:2.4.6-19.el7.CentOS will be installed
–> Processing Dependency: httpd-tools = 2.4.6-19.el7.CentOS for package: httpd-2.4.6-19.el7.CentOS.x86_64
–> Running transaction check
—> Package httpd-tools.x86_64 0:2.4.6-19.el7.CentOS will be installed
–> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================== Package Arch Version Repository Size
==============================================================================================================================================================================Installing:
httpd x86_64 2.4.6-19.el7.CentOS updates
2.7 M
Installing for dependencies:
httpd-tools x86_64 2.4.6-19.el7.CentOS
updates 78 k
Transaction Summary
==============================================================================================================================================================================Install 1 Package (+1 Dependent package)
Total download size: 2.8 M
Installed size: 9.5 M
Is this ok [y/d/N]: y Downloading packages:
(1/2): httpd-tools-2.4.6-19.el7.CentOS.x86_64.rpm | 78 kB 00:00:00
(2/2): httpd-2.4.6-19.el7.CentOS.x86_64.rpm | 2.7 MB 00:00:00
—————————————————————————————————————————————————————————–
———— Original Message ———-
Ah ok thanks for the clarification.
So I enabled the rhui repositories and now all is well. I was able to get apache instaslled.
[root@hadoop1:/etc/yum.repos.d] #yum repolist Loaded plugins: amazon-id, rhui-lb repo id repo name
status epel/x86_64 Extra Packages for Enterprise Linux 7 – x86_64 7,454
remi Les RPM de remi pour Enterprise Linux – x86_64 1,862
remi-php56 Les RPM de remi de PHP 5.6 pour Enterprise Linux 7 – x86_64 277
rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (RPMs) 6,687
rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux Server 7 RH Common (RPMs) 116
rpmforge RHEL 7Server –
RPMforge.net – dag 245
repolist: 16,641
[root@hadoop1:/etc/yum.repos.d] #rpmquery -i httpd httpd-2.4.6-31.el7.x86_64
Webtatic by the way, is actually a very good repo for keeping up with some web related packages.
https://webtatic.com/projects/yum-repository/
I found out about this at a web shop I worked at a few years ago. Check it out!
Thanks, Tim
On Tue, Mar 24, 2015 at 6:15 PM, Richard
-
Also…
Thanks for pointing this out. I’ll follow this advice!
Tim
Sent from my iPhone