# nginx を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

nginx のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:nginx
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install nginx
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nginx
```

  証拠: MacPorts ports tree: www/nginx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add nginx
```

  証拠: Alpine Linux edge package indexes: nginx from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install nginx
```

  証拠: Debian stable package indexes: nginx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install nginx
```

  証拠: Fedora Rawhide package metadata: nginx 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#nginx
```

  証拠: nixpkgs package indexes: nginx from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S nginx
```

  証拠: Arch Linux sync databases: nginx from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install nginx
```

  証拠: openSUSE Tumbleweed package metadata: nginx from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install nginx
```

  証拠: Chocolatey community package catalog: nginx from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'

- Scoop (92%):

```sh
scoop install main/nginx
```

  証拠: Scoop official bucket manifest trees: bucket/nginx.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id freenginx.nginx -e
```

  証拠: Windows Package Manager source index: freenginx.nginx from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:nginx
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/nginx>
- **バージョン:** 1.31.3
- **ソース概要:** HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
- **ホームページ:** <https://nginx.org/>
- **リポジトリ:** <https://github.com/nginx/nginx>
- **上流ドキュメント:** <https://nginx.org/>
- **ライセンス:** BSD-2-Clause
- **ソースアーカイブ:** <https://nginx.org/download/nginx-1.31.3.tar.gz>
- **最終更新:** 2026-08-03T01:16:17Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- nginx (cli)
- nginx (エイリアス)

## 依存関係

- openssl@3
- pcre2

## macOS 提供ライブラリ

- libxcrypt

## インストール挙動

- post-install フック: 未定義
- サービス: declared
- 注意点: Docroot is: $HOMEBREW_PREFIX/var/www The default port has been set in $HOMEBREW_PREFIX/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo. nginx will load all files in $HOMEBREW_PREFIX/etc/nginx/servers/.
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.31.3
- マネージャ更新日: 2026-08-03
- ローカルデータ: OK
- 上流リポジトリ: https://nginx.org/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

nginx is an HTTP server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy. It became famous for event-driven, low-resource handling of large numbers of concurrent connections and then became a default building block in web serving, reverse proxying, Kubernetes ingress, and container deployments.

### プロジェクトの歴史

Igor Sysoev began developing nginx in spring 2002 to solve high-concurrency web traffic problems, especially the C10k-style problem of handling many simultaneous connections efficiently. The project was open sourced under a permissive license on October 4, 2004.

For years nginx grew with little marketing and limited documentation because it solved real operational pain. The official nginx retrospective says Sysoev was the sole developer for seven years and expanded it from a web server and reverse proxy into a broader web application delivery tool with load balancing, caching, security, and content acceleration features.

### 採用の歴史

nginx adoption accelerated as high-traffic sites, startups, and infrastructure teams needed something lighter than Apache prefork-era deployments for static content, reverse proxying, and traffic fan-out. The official nginx site describes it as the world's most popular web server, one of the most popular Docker images, and the software powering multiple Kubernetes ingress controllers.

The commercial story followed the open-source adoption curve. NGINX, Inc. formed in 2011, NGINX Plus launched in 2013, F5 completed its acquisition of NGINX on May 9, 2019, and Igor Sysoev stepped back from NGINX and F5 on January 18, 2022.

### 使われ方

Operators use nginx as the front door for services: serve static files, terminate TLS, route to upstream application servers, cache responses, rate-limit abusive clients, proxy WebSockets, and expose TCP/UDP streams. On developer machines it is often installed to reproduce production routing or test local reverse-proxy behavior.

Package nerds care about nginx build flags and module layout. A distro or Homebrew nginx package is more than one binary: it encodes TLS library choices, HTTP/2 and HTTP/3 support, dynamic modules, config paths, default document roots, service integration, and whether the package follows the F5/nginx.org line or a distribution-maintained variant.

### パッケージ好きにとっての重要性

nginx is a canonical infrastructure package: boring once configured, but decisive in production behavior. Its package history is really a story about turning a specialized high-concurrency web server into a universal reverse-proxy and application-delivery primitive.

### タイムライン

- 2002: Igor Sysoev began developing nginx.
- 2004-10-04: nginx was released as open source.
- 2011: NGINX, Inc. was formed.
- 2013: NGINX Plus launched as the commercial product line.
- 2019-05-09: F5 completed its acquisition of NGINX.
- 2022-01-18: Igor Sysoev stepped back from NGINX and F5.

### Related projects

- Apache httpd
- OpenResty
- Tengine
- Cloudflare infrastructure
- Kubernetes Ingress Controllers
- NGINX Unit
- njs

### ソース

- <https://blog.nginx.org/blog/do-svidaniya-igor-thank-you-for-nginx>
- <https://formulae.brew.sh/formula/nginx>
- <https://nginx.org/en/>
- <https://nginx.org/en/docs/>
- <https://www.f5.com/company/news/press-releases/f5-completes-acquisition-of-nginx>


## セキュリティノート

formula declares a Homebrew service.

- **Geiger リスク:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /usr/local/nginx/conf/nginx.conf, /etc/nginx/nginx.conf, /usr/local/etc/nginx/nginx.conf
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Debian apt - libnginx-mod-http-geoip - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-http-geoip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GeoIP HTTP module for Nginx | https://nginx.org
- Debian apt - libnginx-mod-http-image-filter - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-http-image-filter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | HTTP image filter module for Nginx | https://nginx.org
- Debian apt - libnginx-mod-http-perl - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-http-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl module for Nginx | https://nginx.org
- Debian apt - libnginx-mod-http-xslt-filter - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-http-xslt-filter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XSLT Transformation module for Nginx | https://nginx.org
- Debian apt - libnginx-mod-mail - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-mail from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Mail module for Nginx | https://nginx.org
- Debian apt - libnginx-mod-stream - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-stream from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Stream module for Nginx | https://nginx.org
- Debian apt - libnginx-mod-stream-geoip - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: libnginx-mod-stream-geoip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GeoIP Stream module for Nginx | https://nginx.org
- Debian apt - nginx - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | small, powerful, scalable web/proxy server | https://nginx.org
- Debian apt - nginx-common - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | small, powerful, scalable web/proxy server - common files | https://nginx.org
- Debian apt - nginx-core - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-core from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nginx web/proxy server (standard version) | https://nginx.org
- Debian apt - nginx-dev - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nginx web/proxy server - development headers | https://nginx.org
- Debian apt - nginx-doc - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | small, powerful, scalable web/proxy server - documentation | https://nginx.org
- Debian apt - nginx-extras - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-extras from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nginx web/proxy server (extended version) | https://nginx.org
- Debian apt - nginx-full - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-full from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nginx web/proxy server (standard version with 3rd parties) | https://nginx.org
- Debian apt - nginx-light - 1.26.3-3+deb13u7: normalized package name match | Debian stable package indexes: nginx-light from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nginx web/proxy server (basic version) | https://nginx.org
- Nix - nginx: normalized package name match | nixpkgs package indexes: nginx from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/ja/web-dev-tools/) - Matched web development metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pcre2](https://pkg.so/ja/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [caddy](https://pkg.so/ja/brew/caddy/) - Shares pkgdb curated category or tags: cli, networking, reverse-proxy, web-server.
- [mighttpd2](https://pkg.so/ja/brew/mighttpd2/) - Shares pkgdb curated category or tags: cli, networking, reverse-proxy, web-server.
- [lighttpd](https://pkg.so/ja/brew/lighttpd/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [fcgi](https://pkg.so/ja/brew/fcgi/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [mongoose](https://pkg.so/ja/brew/mongoose/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [algernon](https://pkg.so/ja/brew/algernon/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [fcgiwrap](https://pkg.so/ja/brew/fcgiwrap/) - Shares pkgdb curated category or tags: cli, networking, web-server.
- [httpd](https://pkg.so/ja/brew/httpd/) - Shares pkgdb curated category or tags: cli, http, networking, web-server.
- [nginx](https://pkg.so/ja/npm/nginx/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, networking, nginx, web.
- [trafficserver](https://pkg.so/ja/brew/trafficserver/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, http, networking, openssl, openssl-3.
- [nginx](https://pkg.so/ja/npm/nginx/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## ソース

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