# 使用 Homebrew, dnf, zypper, scoop 安装 httpd

查看 httpd 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:httpd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install httpd
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install httpd
```

  证据: Fedora Rawhide package metadata: httpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install apache2
```

  证据: openSUSE Tumbleweed package metadata: apache2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/ab
```

  证据: Scoop official bucket manifest trees: bucket/ab.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:httpd
- **软件包管理器:** Homebrew
- **版本:** 2.4.68
- **来源摘要:** Apache HTTP server
- **主页:** <https://httpd.apache.org/>
- **最后更新:** 2026-06-22T14:03:44-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ab (别名)
- apachectl (别名)
- apxs (别名)
- checkgid (别名)
- dbmmanage (别名)
- fcgistarter (别名)
- htcacheclean (别名)
- htdbm (别名)
- htdigest (别名)
- htpasswd (别名)
- httpd (别名)
- httxt2dbm (别名)
- logresolve (别名)
- rotatelogs (别名)
- suexec (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.4.68
## 项目历史与用法

Apache HTTP Server is one of the defining infrastructure packages of the Web: a general-purpose HTTP server descended from NCSA httpd, maintained by the Apache HTTP Server Project, and distributed with a large suite of command-line administration and support tools.

### 项目历史

The project began in February 1995 after development of Rob McCool's NCSA httpd had stalled. A small group of webmasters coordinated their accumulated bug fixes and enhancements, using NCSA httpd 1.3 as the base for the first public Apache server release, 0.6.2, in April 1995.

The early server was quickly reworked around Robert Thau's Shambhala architecture, which introduced a modular structure, an API for extensibility, pool-based memory allocation, and an adaptive preforking process model. Apache 1.0 followed on December 1, 1995, and in 1999 the Apache Software Foundation was formed to give the project organizational, legal, and financial support.

### 采用历史

Apache passed NCSA httpd as the top server in the Netcraft Web Server Survey in 1996, less than a year after the Apache Group formed. Its adoption story is closely tied to Unix and Linux packaging: the `httpd` package became both the server daemon and a bundle of operational tools used by administrators, module developers, and local web developers.

### 使用方式

As a package, `httpd` is not only the web server binary. It also ships familiar tools such as `apachectl`, `apxs`, `htpasswd`, `htdigest`, `rotatelogs`, and `ab`, making the package useful for running a local server, testing configuration, building modules, managing password files, rotating logs, and benchmarking request throughput.

### 为什么软件包爱好者会关心

Package maintainers care about Apache HTTP Server because it sits at the intersection of daemon management, module ABI compatibility, TLS libraries, configuration layout, and service integration. It is also historically important as a package that helped make source-built and distribution-packaged open-source infrastructure normal for production web hosting.

### 时间线

- 1995: Apache development started around patches to NCSA httpd.
- 1995: Apache 0.6.2 was released in April.
- 1995: Apache 1.0 was released on December 1.
- 1996: Apache passed NCSA httpd in the Netcraft Web Server Survey.
- 1999: The Apache Software Foundation was formed.
- 2012: The 2.4.x branch began its GA release history with 2.4.1 on February 21.

### Related projects

- Apache HTTP Server grew out of NCSA httpd and is closely associated with APR, mod_ssl, mod_perl, Tomcat, Traffic Server, and the bundled `ab` benchmarking tool.

### 来源

- <https://httpd.apache.org/ABOUT_APACHE.html>
- <https://httpd.apache.org/docs/2.4/programs/ab.html>
- <https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x/STATUS>


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service

## 其他软件包管理器记录

- dnf - httpd - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: httpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Apache HTTP Server | https://httpd.apache.org/
- dnf - httpd-core - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: httpd-core from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | httpd minimal core | https://httpd.apache.org/
- dnf - httpd-devel - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: httpd-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development interfaces for the Apache HTTP Server | https://httpd.apache.org/
- dnf - httpd-filesystem - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: httpd-filesystem from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The basic directory layout for the Apache HTTP Server | https://httpd.apache.org/
- dnf - httpd-manual - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: httpd-manual from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for the Apache HTTP Server | https://httpd.apache.org/
- dnf - httpd-tools - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: httpd-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tools for use with the Apache HTTP Server | https://httpd.apache.org/
- dnf - mod_ldap - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: mod_ldap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | LDAP authentication modules for the Apache HTTP Server | https://httpd.apache.org/
- dnf - mod_lua - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: mod_lua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Lua scripting support for the Apache HTTP Server | https://httpd.apache.org/
- dnf - mod_proxy_html - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: mod_proxy_html from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | HTML and XML content filters for the Apache HTTP Server | https://httpd.apache.org/
- dnf - mod_session - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: mod_session from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Session interface for the Apache HTTP Server | https://httpd.apache.org/
- dnf - mod_ssl - 2.4.68-4.fc45: normalized package name match | Fedora Rawhide package metadata: mod_ssl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | SSL/TLS module for the Apache HTTP Server | https://httpd.apache.org/
- zypper - apache2 - 2.4.67-1.3: normalized package name match | openSUSE Tumbleweed package metadata: apache2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The Apache HTTPD Server | https://httpd.apache.org/
- zypper - darkhttpd - 1.17-1.5: normalized package name match | openSUSE Tumbleweed package metadata: darkhttpd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | When you need a web server in a hurry | https://unix4lyfe.org/darkhttpd
- zypper - lighttpd - 1.4.85-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lighttpd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Secure, Fast, Compliant, and Very Flexible Web Server | https://www.lighttpd.net/
- zypper - nginx - 1.31.3-1.3: normalized package name match | openSUSE Tumbleweed package metadata: nginx from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A HTTP server and IMAP/POP3 proxy server | https://github.com/nginx/nginx
- Scoop - main/ab: installed executable or alias match | Scoop official bucket manifest trees: bucket/ab.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/httpd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/httpd.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
