# Install fcgi with Homebrew, apk, dnf, MacPorts, Nix, pacman

Protocol for interfacing interactive programs with a web server. Version 2.4.7 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fcgi
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fcgi
```

  Evidence: 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
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:fcgi
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fcgi>
- **Version:** 2.4.7
- **Source summary:** Protocol for interfacing interactive programs with a web server
- **Homepage:** <https://fastcgi-archives.github.io/>
- **Repository:** <https://github.com/FastCGI-Archives/fcgi2>
- **Upstream docs:** <https://fastcgi-archives.github.io/FastCGI_Specification.html>
- **License:** OML
- **Source archive:** <https://github.com/FastCGI-Archives/fcgi2/archive/refs/tags/2.4.7.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- cgi-fcgi (cli)
- cgi-fcgi (alias)

## Build dependencies

- autoconf
- automake
- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.4.7
- Local data: ok
- Upstream repository: https://github.com/FastCGI-Archives/fcgi2
- Upstream latest detected: 2.4.7 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fcgi
- **Aliases:** fastcgi
- **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

## Other Package-Manager Records

- 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-2.fc44: normalized package name match | Fedora Rawhide package metadata: fcgi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | FastCGI development kit | https://github.com/FastCGI-Archives/fcgi2
- dnf - fcgi-devel - 2.4.7-2.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [fcgiwrap](https://www.automicvault.com/pkg/brew/fcgiwrap/) - Popular package that depends on this formula.
- [mapserver](https://www.automicvault.com/pkg/brew/mapserver/) - Popular package that depends on this formula.
- [mighttpd2](https://www.automicvault.com/pkg/brew/mighttpd2/) - Shares av.db curated category or tags: cgi, cli, networking, web-server.
- [spawn-fcgi](https://www.automicvault.com/pkg/brew/spawn-fcgi/) - Shares av.db curated category or tags: cli, fastcgi, networking, web-server.
- [webfs](https://www.automicvault.com/pkg/brew/webfs/) - Shares av.db curated category or tags: cgi, cli, networking, web-server.
- [algernon](https://www.automicvault.com/pkg/brew/algernon/) - Shares av.db curated category or tags: cli, networking, web-server.
- [caddy](https://www.automicvault.com/pkg/brew/caddy/) - Shares av.db curated category or tags: cli, networking, web-server.
- [ferron](https://www.automicvault.com/pkg/brew/ferron/) - Shares av.db curated category or tags: cli, networking, web-server.
- [h2o](https://www.automicvault.com/pkg/brew/h2o/) - Shares av.db curated category or tags: cli, networking, web-server.

## Combined YAML source

View the package source record on GitHub. [combined/fcgi.yml](https://github.com/automic-vault/db/blob/main/combined/fcgi.yml)


## Sources

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