# 使用 Homebrew, apt, MacPorts, Nix 安装 webfs

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

## 安装

```sh
sudo av install brew:webfs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install webfs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install webfs
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install webfs
```

  证据: Debian stable package indexes: webfs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#webfs
```

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

## 软件包事实

- **软件包键:** brew:webfs
- **软件包管理器:** Homebrew
- **版本:** 1.21
- **来源摘要:** HTTP server for purely static content
- **主页:** <https://linux.bytesex.org/misc/webfs.html>
- **最后更新:** 2026-07-10T20:48:47-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- webfsd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

webfs, usually run as `webfsd`, is a tiny HTTP server for mostly static content. It was built for the old but still useful job of exporting a directory tree over HTTP quickly, without configuring a full Apache, nginx, or application server.

### 项目历史

Gerd Knorr's webfs dates to the late 1990s. Debian's man page credits copyright years 1999 and 2000, and a Freshmeat-era announcement for webfs 1.5 appeared in November 2000, describing it as a simple static HTTP server tested on Linux and FreeBSD.

The 2000 announcement already shows the shape that made the tool last: a very small binary, sendfile support with a userspace fallback, IPv6, chroot-to-docroot, basic authentication, and virtual hosts. The current homepage keeps the same theme, presenting webfs as a quick way to serve static files or expose FTP-server content via HTTP.

### 采用历史

webfs became a small distribution package rather than a large upstream platform. Its continued presence in Debian, Ubuntu, MacPorts, Nix, and Homebrew reflects a specific utility: administrators and developers still occasionally want a minimal static file server with Unix permissions and simple daemon behavior.

The package's longevity comes from being boring in the best sense. It does not compete with modern reverse proxies or app servers; it survives because a tiny static HTTP daemon remains handy for tests, rescue environments, old hardware, package repositories, and temporary file sharing.

### 使用方式

Typical use is to point `webfsd` at a directory and let it serve regular files and directory listings. Access control relies primarily on Unix file permissions, and the daemon can drop privileges after binding privileged ports or entering a chroot when installed and configured for that mode.

webfs is most appropriate for static content: quick exports, LAN file drops, read-only mirrors, or lightweight development fixtures. It is not a dynamic web stack, and that limitation is exactly why the package remains easy to reason about.

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

webfs is significant as a fossil that still works: a compact pre-container HTTP daemon with the Unix philosophy plainly visible. For package nerds, it represents the era when a useful server could be a tens-of-kilobytes binary plus a man page, and still earn a slot in modern package indexes.

### 时间线

- 1999: Debian manpage copyright history identifies Gerd Knorr's authorship beginning in 1999.
- 2000-11: Freshmeat announced webfs 1.5 with IPv6, chroot, basic auth, virtual hosts, and sendfile fallback support.
- 2014: Debian jessie carried a webfsd man page, showing long-running distribution packaging.
- 2025: The upstream release directory listed webfs 1.21-era release artifacts.
- 2026: Homebrew and other package managers still carried webfs as a static HTTP server package.

### Related projects

- Related tools include thttpd, darkhttpd, busybox httpd, Python's `http.server`, nginx static serving, Apache httpd, and other small daemons used when static file export is the whole job.

### 来源

- <https://directory.fsf.org/wiki/Webfs>
- <https://groups.google.com/g/fm.announce/c/hgjdjEuYMxM>
- <https://linux.bytesex.org/misc/webfs.html>
- <https://manpages.debian.org/unstable/webfs/webfsd.1.en.html>
- <https://www.kraxel.org/releases/webfs/>


## 安全说明

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

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

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

- Debian apt - webfs - 1.21+ds1-16: normalized package name match | Debian stable package indexes: webfs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight HTTP server for static content | http://linux.bytesex.org/misc/webfs.html
- Nix - webfs: normalized package name match | nixpkgs package indexes: pkgs/by-name/we/webfs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - webfs - 1.21+ds1-12build3: normalized package name match | Ubuntu 24.04 LTS package indexes: webfs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight HTTP server for static content | http://linux.bytesex.org/misc/webfs.html
- MacPorts - webfs: normalized package name match | MacPorts ports tree: www/webfs/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/webfs.yml](https://github.com/mxcl/pkgdb/blob/main/combined/webfs.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
