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

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

## 安装

```sh
sudo av install brew:fcgi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fcgi
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fcgi
```

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

### Linux

- apk (92%):

```sh
sudo apk add fcgi
```

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

- dnf (92%):

```sh
sudo dnf install fcgi
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#fcgi
```

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

- pacman (92%):

```sh
sudo pacman -S fcgi
```

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

## 软件包事实

- **软件包键:** brew:fcgi
- **软件包管理器:** Homebrew
- **版本:** 2.4.7
- **来源摘要:** Protocol for interfacing interactive programs with a web server
- **主页:** <https://fastcgi-archives.github.io/>
- **仓库:** <https://github.com/FastCGI-Archives/fcgi2>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cgi-fcgi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

FastCGI is an open extension to CGI that keeps application processes alive and communicates with them over a simple protocol, avoiding the one-process-per-request model of traditional CGI.

The `fcgi` package is the FastCGI Developer's Kit: headers, libraries, examples, language integration material, and the `cgi-fcgi` tool used to develop and test FastCGI applications.

### 项目历史

Open Market published the FastCGI 1.0 specification on April 29, 1996. The spec defines the interface between FastCGI applications and supporting web servers from the application's perspective.

The Developer's Kit dates to the same 1996 Open Market codebase. The current FastCGI-Archives repository preserves a fork of the original FastCGI SDK after the historical FastCGI.com site disappeared.

### 采用历史

FastCGI was adopted because it offered CGI's language-agnostic deployment model without forcing every request to spawn a new process. The official docs include integration material for Perl, Tcl, and Java as well as C library documentation.

Its long-term package-manager role is legacy infrastructure: modern web stacks often hide FastCGI behind application servers or language-specific process managers, but `fcgi` remains the small C SDK and bridge tool that many systems keep available for compatibility.

### 使用方式

Developers use the library to write FastCGI applications that accept requests over a listening socket and exchange FastCGI records with a web server. The SDK includes examples, headers, `libfcgi`, and language-specific documentation.

The `cgi-fcgi` command is useful for development and testing because it can bridge CGI-style invocation and FastCGI applications, including when a web server lacks direct FastCGI support.

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

FastCGI is package-nerd archaeology that still matters: a 1990s web protocol whose ABI, headers, and helper binary continue to be packaged because web servers, wrappers, and legacy applications still know how to speak it.

The package is also the dependency behind tools like fcgiwrap, making it part of the compatibility layer that lets old CGI programs survive behind newer web-server configurations.

### 时间线

- 1996: Open Market published FastCGI specification 1.0.
- 1996: The FastCGI Developer's Kit documented libraries, examples, language integrations, and `cgi-fcgi`.
- 2016: The FastCGI-Archives/fcgi2 GitHub repository was created to preserve the SDK after the original FastCGI.com material moved offline.

### Related projects

- CGI is the predecessor interface that FastCGI extends.
- fcgiwrap, spawn-fcgi, web-server FastCGI modules, and language runtimes such as PHP-FPM are part of the surrounding FastCGI ecosystem.

### 来源

- <https://fastcgi-archives.github.io/FastCGI_Specification.html>
- <https://fastcgi-archives.github.io/fcgi2/doc/overview.html>
- <https://github.com/FastCGI-Archives/fcgi2>
- <https://raw.githubusercontent.com/FastCGI-Archives/fcgi2/master/README.md>


## 安全说明

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

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

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

- Nix - fcgi: normalized package name match | nixpkgs package indexes: pkgs/by-name/fc/fcgi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - fcgi - 2.4.6-r0: normalized package name match | Alpine Linux edge package indexes: fcgi from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | FAST CGI(fcgi) is a language independent, high performant extension to CGI | https://github.com/FastCGI-Archives/fcgi2
- apk - fcgi++ - 2.4.6-r0: normalized package name match | Alpine Linux edge package indexes: fcgi++ from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | FCGI c++ library | https://github.com/FastCGI-Archives/fcgi2
- apk - fcgi-dev - 2.4.6-r0: normalized package name match | Alpine Linux edge package indexes: fcgi-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | FAST CGI(fcgi) is a language independent, high performant extension to CGI (development files) | https://github.com/FastCGI-Archives/fcgi2
- apk - fcgi-doc - 2.4.6-r0: normalized package name match | Alpine Linux edge package indexes: fcgi-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | FAST CGI(fcgi) is a language independent, high performant extension to CGI (documentation) | https://github.com/FastCGI-Archives/fcgi2
- dnf - fcgi - 2.4.7-3.fc45: normalized package name match | Fedora Rawhide package metadata: fcgi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | FastCGI development kit | https://github.com/FastCGI-Archives/fcgi2
- dnf - fcgi-devel - 2.4.7-3.fc45: normalized package name match | Fedora Rawhide package metadata: fcgi-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for fcgi | https://github.com/FastCGI-Archives/fcgi2
- pacman - fcgi - 2.4.7-1: normalized package name match | Arch Linux sync databases: fcgi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | FASTCgi (fcgi) is a language independent, high performant extension to CGI | https://github.com/FastCGI-Archives/fcgi2
- MacPorts - fcgi: normalized package name match | MacPorts ports tree: www/fcgi/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/fcgi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fcgi.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
