AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1108767
Accepted
user1999453
user1999453
Asked: 2022-08-23 00:05:50 +0800 CST2022-08-23 00:05:50 +0800 CST 2022-08-23 00:05:50 +0800 CST

centos8上安装httpd-devel - 找不到匹配错误

  • 772

我正在尝试在我的 centos8 机器上安装 httpd-devel 并出现以下错误:

[root@localhost tmp]# yum install httpd-devel
Last metadata expiration check: 0:02:01 ago on Mon 22 Aug 2022 11:57:03 AM +04.
No match for argument: httpd-devel
Error: Unable to find a match: httpd-devel

请在 CentOS-Base.repo 下方找到:

CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the ##mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[BaseOS]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

知道为什么我会收到以下错误消息:

Error: Unable to find a match: httpd-devel

我也尝试了以下命令,但得到了同样的错误:

[root@localhost native]# [root@localhost native]# yum install epel-release
CentOS-8 - Base                                                                                                           5.6 kB/s | 3.9 kB     00:00
CentOS Linux 8 - AppStream                                                                                                 14 kB/s | 3.9 kB     00:00
CentOS Linux 8 - BaseOS                                                                                                    15 kB/s | 3.9 kB     00:00
CentOS Linux 8 - Extras                                                                                                   4.8 kB/s | 1.5 kB     00:00
Docker CE Stable - x86_64                                                                                                  14 kB/s | 3.5 kB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                                                             22 kB/s |  53 kB     00:02
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                     24 kB/s |  63 kB     00:02
Metadata cache created.
[root@localhost native]# yum install httpd-devel
Last metadata expiration check: 0:00:12 ago on Mon 22 Aug 2022 02:26:58 PM +04.
No match for argument: httpd-devel
Error: Unable to find a match: httpd-devel

提前感谢您的建议。

httpd
  • 0 0 个回答
  • 179 Views

0 个回答

  • Voted
  1. zabiullah
    2022-08-23T02:13:19+08:002022-08-23T02:13:19+08:00

    通过在 CentOS 8 上安装流行的附加存储库:

    yum install epel-release 
    yum makecache
    yum install httpd-devel 
    
    • 0
  2. Best Answer
    John Mahowald
    2022-08-24T06:40:16+08:002022-08-24T06:40:16+08:00

    CentOS 8 已经死了,不要使用它。不要使用 vault.centos.org 来安装新的东西,这是一个档案,不会得到更新、安全或其他方面。

    迁移到 RHEL 或其重建之一,Alma、Rocky、Oracle。所有这些都在 appstream repo 中有 httpd-devel。

    如果您想要“早期访问” RHEL,CentOS Stream 存在并获得更新,但它不再是重建。仅当您有用于预览 RHEL 开发的明确用例时才迁移到 Stream。

    最后,这很复杂,因为模块化包使事情变得非常混乱。httpd 在 el8 中是模块化的,因此请参阅模块文档了解特殊的 dnf 命令。

    • 0

相关问题

  • 当 httpd 被赋予错误的端口号时会发生什么?

  • Apache httpd 集群日志记录

  • HTTP -> HTTPS 重定向与 OpenBSD 的 httpd [关闭]

  • PHP 网络服务器的最快选择

  • 什么会导致 Apache HTTPD 无限期地使用 100% CPU

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve