AWS RHEL7缺少包

时间:2016-06-21 09:32:56

标签: linux amazon-web-services amazon-ec2 repository yum

我一直试图在运行RHEL7的虚拟机上安装LAMP Web服务器,因为这些软件包似乎丢失了!

我已经安装并启用了各种存储库,但我仍然看不到我想要的软件包。

我会带你完成以下步骤: -

1)sudo yum clean
2)sudo yum update
3)sudo yum install httpd24 php56 mysql55-server php56-mysqlnd

然后我得到以下内容: -

Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No package httpd24 available.
No package php56 available.
No package mysql55-server available.
No package php56-mysqlnd available.
Error: Nothing to do

4)sudo yum repolist all

Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
repo id                                                          repo name                                                                status
epel/x86_64                                                      Extra Packages for Enterprise Linux 7 - x86_64                           enabled: 10,171
epel-debuginfo/x86_64                                            Extra Packages for Enterprise Linux 7 - x86_64 - Debug                   disabled
epel-source                                                      Extra Packages for Enterprise Linux 7 - x86_64 - Source                  disabled
epel-testing/x86_64                                              Extra Packages for Enterprise Linux 7 - Testing - x86_64                 disabled
epel-testing-debuginfo/x86_64                                    Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug         disabled
epel-testing-source/x86_64                                       Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source        disabled
nodesource/x86_64                                                Node.js Packages for Enterprise Linux 7 - x86_64                         enabled:     85
nodesource-source                                                Node.js for Enterprise Linux 7 - x86_64 - Source                         disabled
rhui-REGION-client-config-server-7/x86_64                        Red Hat Update Infrastructure 2.0 Client Configuration Server 7          enabled:      6
rhui-REGION-rhel-server-debug-extras/7Server/x86_64              Red Hat Enterprise Linux Server 7 Extra Debug (Debug RPMs)               disabled
rhui-REGION-rhel-server-debug-optional/7Server/x86_64            Red Hat Enterprise Linux Server 7 Optional Debug (Debug RPMs)            disabled
rhui-REGION-rhel-server-debug-rh-common/7Server/x86_64           Red Hat Enterprise Linux Server 7 RH Common Debug (Debug RPMs)           disabled
rhui-REGION-rhel-server-debug-rhscl/7Server/x86_64               Red Hat Enterprise Linux Server 7 RHSCL Debug (Debug RPMs)               disabled
rhui-REGION-rhel-server-debug-supplementary/7Server/x86_64       Red Hat Enterprise Linux Server 7 Supplementary Debug (Debug RPMs)       disabled
rhui-REGION-rhel-server-extras/7Server/x86_64                    Red Hat Enterprise Linux Server 7 Extra(RPMs)                            enabled:    213
rhui-REGION-rhel-server-optional/7Server/x86_64                  Red Hat Enterprise Linux Server 7 Optional (RPMs)                        enabled:  8,617
rhui-REGION-rhel-server-releases/7Server/x86_64                  Red Hat Enterprise Linux Server 7 (RPMs)                                 enabled: 10,869
rhui-REGION-rhel-server-releases-debug/7Server/x86_64            Red Hat Enterprise Linux Server 7 Debug (Debug RPMs)                     disabled
rhui-REGION-rhel-server-releases-source/7Server/x86_64           Red Hat Enterprise Linux Server 7 (SRPMs)                                disabled
rhui-REGION-rhel-server-rh-common/7Server/x86_64                 Red Hat Enterprise Linux Server 7 RH Common (RPMs)                       enabled:    186
rhui-REGION-rhel-server-rhscl/7Server/x86_64                     Red Hat Enterprise Linux Server 7 RHSCL (RPMs)                           disabled
rhui-REGION-rhel-server-source-extras/7Server/x86_64             Red Hat Enterprise Linux Server 7 Extra (SRPMs)                          disabled
rhui-REGION-rhel-server-source-optional/7Server/x86_64           Red Hat Enterprise Linux Server 7 Optional (SRPMs)                       disabled
rhui-REGION-rhel-server-source-rh-common/7Server/x86_64          Red Hat Enterprise Linux Server 7 RH Common (SRPMs)                      disabled
rhui-REGION-rhel-server-source-rhscl/7Server/x86_64              Red Hat Enterprise Linux Server 7 RHSCL (SRPMs)                          disabled
rhui-REGION-rhel-server-source-supplementary/7Server/x86_64      Red Hat Enterprise Linux Server 7 Supplementary (SRPMs)                  disabled
rhui-REGION-rhel-server-supplementary/7Server/x86_64             Red Hat Enterprise Linux Server 7 Supplementary (RPMs)                   disabled
rpmforge                                                         RHEL 7Server - RPMforge.net - dag                                        enabled:    245
rpmforge-extras                                                  RHEL 7Server - RPMforge.net - extras                                     disabled
rpmforge-testing                                                 RHEL 7Server - RPMforge.net - testing                                    disabled
repolist: 30,392

5)我也试过sudo yum –-enablerepo=epel install httpd24 php56 mysql55-server php56-mysqlnd - 但这没有做任何事情!

我错过了什么?

谢谢!

1 个答案:

答案 0 :(得分:10)

这些包未正确命名 您可以使用' yum search' 找到合适的套餐。例如:

yum search httpd

将返回大量包裹,包括:

httpd.x86_64 : Apache HTTP Server

然后,您可以使用' yum info' 获取有关此套餐的信息:

yum info httpd.x86_64
Loaded plugins: product-id, security, subscription-manager
Installed Packages
Name        : httpd
Arch        : x86_64
Version     : 2.2.15
Release     : 47.el6_7.1
Size        : 2.9 M
Repo        : installed
From repo   : rhel-6-server-rpms
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.

这里的版本是2.2.15。

使用--enable-repo = epel选项是没用的,因为在您的存储库中启用了此repo。

希望它有所帮助。