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

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

## 安装

```sh
sudo av install brew:fcgiwrap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fcgiwrap
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fcgiwrap
```

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

### Linux

- apk (92%):

```sh
sudo apk add fcgiwrap
```

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

- Debian apt (92%):

```sh
sudo apt install fcgiwrap
```

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

- dnf (92%):

```sh
sudo dnf install fcgiwrap
```

  证据: Fedora Rawhide package metadata: fcgiwrap 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#fcgiwrap
```

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

- pacman (92%):

```sh
sudo pacman -S fcgiwrap
```

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

- zypper (92%):

```sh
sudo zypper install fcgiwrap
```

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

## 软件包事实

- **软件包键:** brew:fcgiwrap
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** CGI support for Nginx
- **主页:** <https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/>
- **仓库:** <https://github.com/gnosek/fcgiwrap>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fcgiwrap (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

fcgiwrap is a small FastCGI wrapper for running traditional CGI scripts. Its README describes it as lightweight, configuration-free, and intended to execute CGI scripts while passing request state through FastCGI parameters.

The tool is closely associated with Nginx deployments because Nginx does not execute CGI programs directly; fcgiwrap supplies the missing CGI execution layer while the web server talks FastCGI.

### 项目历史

The public GitHub repository was created in 2008 by Grzegorz Nosek. The README presents fcgiwrap as a simple wrapper rather than a full application server: it links against the FastCGI development library, runs CGI scripts, and handles headers, environment variables, and stderr forwarding.

Over time the repository gained service-manager integration such as systemd socket activation files, reflecting the normal deployment style: a small persistent FastCGI endpoint supervised by the operating system or launched through a helper.

### 采用历史

fcgiwrap's adoption comes from a narrow but durable need: serving existing CGI scripts behind FastCGI-only web-server configurations. The input metadata lists packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, openSUSE, and others, which matches its role as infrastructure glue.

The README recommends launchers such as spawn-fcgi and also notes optional systemd support, showing the two common deployment eras for small FastCGI helper daemons.

### 使用方式

In direct mode, `SCRIPT_FILENAME` names the CGI program to execute. Otherwise, fcgiwrap combines `DOCUMENT_ROOT` and `SCRIPT_NAME`, then splits the result into the script path and `PATH_INFO`.

Operators usually run it as a long-lived process or socket-activated service, then configure a web server FastCGI location to pass CGI requests to the fcgiwrap socket.

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

fcgiwrap is the tiny package that keeps old CGI scripts deployable in newer web-server setups. It is not glamorous, but it is exactly the kind of bridge package that prevents legacy admin panels, hooks, and small scripts from forcing a web-server change.

Its package-manager value is that it externalizes CGI support: install one small daemon, point Nginx or another FastCGI-capable server at its socket, and avoid embedding CGI execution in the web server itself.

### 时间线

- 2008: The public gnosek/fcgiwrap GitHub repository was created.
- 2008 onward: fcgiwrap was packaged as a lightweight CGI-over-FastCGI bridge for Unix-like systems.
- Later releases: The repository included systemd socket activation units for `/run/fcgiwrap.sock`.

### Related projects

- FastCGI/fcgi2 provides the protocol and library foundation.
- Nginx, spawn-fcgi, and systemd socket activation are common deployment companions.

### 来源

- <https://github.com/gnosek/fcgiwrap>
- <https://raw.githubusercontent.com/gnosek/fcgiwrap/master/README.rst>
- <https://raw.githubusercontent.com/gnosek/fcgiwrap/master/systemd/fcgiwrap.service>
- <https://raw.githubusercontent.com/gnosek/fcgiwrap/master/systemd/fcgiwrap.socket>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - fcgiwrap - 1.1.0-16: normalized package name match | Debian stable package indexes: fcgiwrap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple server to run CGI applications over FastCGI | https://github.com/gnosek/fcgiwrap
- Nix - fcgiwrap: normalized package name match | nixpkgs package indexes: pkgs/by-name/fc/fcgiwrap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fcgiwrap - 1.1.0-14build1: normalized package name match | Ubuntu 24.04 LTS package indexes: fcgiwrap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | simple server to run CGI applications over FastCGI | https://github.com/gnosek/fcgiwrap
- apk - fcgiwrap - 1.1.0-r9: normalized package name match | Alpine Linux edge package indexes: fcgiwrap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple server for running CGI applications over FastCGI | https://github.com/gnosek/fcgiwrap
- apk - fcgiwrap-doc - 1.1.0-r9: normalized package name match | Alpine Linux edge package indexes: fcgiwrap-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple server for running CGI applications over FastCGI (documentation) | https://github.com/gnosek/fcgiwrap
- apk - fcgiwrap-openrc - 1.1.0-r9: normalized package name match | Alpine Linux edge package indexes: fcgiwrap-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple server for running CGI applications over FastCGI (OpenRC init scripts) | https://github.com/gnosek/fcgiwrap
- dnf - fcgiwrap - 1.1.0-28.20181108git99c942c.fc45: normalized package name match | Fedora Rawhide package metadata: fcgiwrap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Simple FastCGI wrapper for CGI scripts | https://github.com/gnosek/fcgiwrap
- pacman - fcgiwrap - 1.1.0-10: normalized package name match | Arch Linux sync databases: fcgiwrap from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A simple server for running CGI applications over FastCGI. | https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/
- zypper - fcgiwrap - 1.1.0+18+g99c942c-3.25: normalized package name match | openSUSE Tumbleweed package metadata: fcgiwrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | FastCGI wrapper for CGI scripts | https://github.com/gnosek/fcgiwrap
- zypper - fcgiwrap-nginx - 1.1.0+18+g99c942c-3.25: normalized package name match | openSUSE Tumbleweed package metadata: fcgiwrap-nginx from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | System services for using fcgiwrap with nginx | https://github.com/gnosek/fcgiwrap
- MacPorts - fcgiwrap: normalized package name match | MacPorts ports tree: www/fcgiwrap/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/fcgiwrap.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fcgiwrap.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
