# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper 安装 darkhttpd

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

## 安装

```sh
sudo av install brew:darkhttpd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install darkhttpd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install darkhttpd
```

  证据: MacPorts ports tree: www/darkhttpd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add darkhttpd
```

  证据: Alpine Linux edge package indexes: darkhttpd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install darkhttpd
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#darkhttpd
```

  证据: nixpkgs package indexes: pkgs/by-name/da/darkhttpd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S darkhttpd
```

  证据: Arch Linux sync databases: darkhttpd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install darkhttpd
```

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

## 软件包事实

- **软件包键:** brew:darkhttpd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/darkhttpd>
- **版本:** 1.17
- **来源摘要:** Small static webserver without CGI
- **主页:** <https://unix4lyfe.org/darkhttpd/>
- **仓库:** <https://github.com/emikulic/darkhttpd>
- **上游文档:** <https://unix4lyfe.org/darkhttpd/>
- **许可证:** ISC
- **源码归档:** <https://github.com/emikulic/darkhttpd/archive/refs/tags/v1.17.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- darkhttpd (cli)
- darkhttpd (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.17
- 本地数据: OK
- 上游仓库: https://github.com/emikulic/darkhttpd
- 检测到的最新版本: v1.17 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

darkhttpd is a small C static web server designed for quickly serving files without CGI, daemon scaffolding, or a separate configuration file.

### 项目历史

Emil Mikulic's official page describes darkhttpd as a web server for when a server is needed in a hurry. The project emphasizes a single binary, no required installation files, no inetd dependency, and no configuration file beyond specifying the web root.

### 采用历史

The official README and project page highlight portability across FreeBSD, Linux, OpenBSD, and Solaris, plus a very small Docker image. GitHub releases show active 1.x maintenance into the mid-2020s.

### 使用方式

Users run darkhttpd by pointing it at a document root, then add command-line flags for port, bind address, logging, chroot, privilege drop, directory listing behavior, pidfiles, redirects, custom headers, and Docker deployment.

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

darkhttpd is the sort of utility package people keep installed for throwaway local serving, embedded images, rescue shells, and tiny containers: the appeal is that the server is boring, static, scriptable, and not tied to a configuration tree.

### 时间线

- 2003: The official page's copyright span begins.
- 2021: The official page was published with the current project summary.
- 2024: v1.15 and v1.16 were published on GitHub.
- 2025: v1.17 was published on GitHub.

### Related projects

- The README compares darkhttpd culturally with small static servers and notes that suckless.org lists it among software that 'sucks less'.

### 来源

- <https://unix4lyfe.org/darkhttpd>
- <https://github.com/emikulic/darkhttpd>
- <https://github.com/emikulic/darkhttpd/releases>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** darkhttpd
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - darkhttpd: normalized package name match | nixpkgs package indexes: pkgs/by-name/da/darkhttpd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - darkhttpd - 1.17-r0: normalized package name match | Alpine Linux edge package indexes: darkhttpd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A simple, single-threaded, static content webserver | https://unix4lyfe.org/darkhttpd/
- apk - darkhttpd-openrc - 1.17-r0: normalized package name match | Alpine Linux edge package indexes: darkhttpd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A simple, single-threaded, static content webserver (OpenRC init scripts) | https://unix4lyfe.org/darkhttpd/
- dnf - darkhttpd - 1.17-8.fc45: normalized package name match | Fedora Rawhide package metadata: darkhttpd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Secure, lightweight, fast, single-threaded HTTP/1.1 server | https://github.com/emikulic/darkhttpd
- pacman - darkhttpd - 1.17-1: normalized package name match | Arch Linux sync databases: darkhttpd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A small and secure static webserver | https://unix4lyfe.org/darkhttpd/
- 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
- MacPorts - darkhttpd: normalized package name match | MacPorts ports tree: www/darkhttpd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [caddy](https://pkg.so/zh-hans/brew/caddy/) - Shares pkgdb curated category or tags: cli, http-server, networking, web-server.
- [lighttpd](https://pkg.so/zh-hans/brew/lighttpd/) - Shares pkgdb curated category or tags: cli, http-server, networking, web-server.
- [mongoose](https://pkg.so/zh-hans/brew/mongoose/) - Shares pkgdb curated category or tags: c, cli, networking, web-server.
- [mighttpd2](https://pkg.so/zh-hans/brew/mighttpd2/) - Shares pkgdb curated category or tags: cli, http-server, networking, web-server.
- [nginx](https://pkg.so/zh-hans/brew/nginx/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [fcgi](https://pkg.so/zh-hans/brew/fcgi/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [algernon](https://pkg.so/zh-hans/brew/algernon/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [webfs](https://pkg.so/zh-hans/brew/webfs/) - Shares pkgdb curated category or tags: cli, http-server, networking, static-files, web-server.
- [static-web-server](https://pkg.so/zh-hans/brew/static-web-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, files, http, networking, server.
- [http-server](https://pkg.so/zh-hans/npm/http-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, files, http, http-server, networking.

## Combined YAML source

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


## 来源

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