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

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

## 安装

```sh
sudo av install brew:squid
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install squid
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install squid
```

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

### Linux

- apk (92%):

```sh
sudo apk add squid
```

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

- Debian apt (92%):

```sh
sudo apt install squid
```

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

- dnf (92%):

```sh
sudo dnf install squid
```

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

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

- pacman (92%):

```sh
sudo pacman -S squid
```

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

- zypper (92%):

```sh
sudo zypper install squid
```

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

### Windows

- Chocolatey (92%):

```sh
choco install squid
```

  证据: Chocolatey community package catalog: squid from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','sqlitebrowser.install'

## 软件包事实

- **软件包键:** brew:squid
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/squid>
- **版本:** 7.6
- **来源摘要:** Advanced proxy caching server for HTTP, HTTPS, FTP, and Gopher
- **主页:** <https://www.squid-cache.org/>
- **仓库:** <https://github.com/squid-cache/squid>
- **上游文档:** <https://www.squid-cache.org/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/squid-cache/squid/releases/download/SQUID_7_6/squid-7.6.tar.bz2>
- **最后更新:** 2026-06-08T13:34:28Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- squid (cli)
- squid (别名)

## 依赖

- openssl@3

## macOS 提供的库

- libxcrypt

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 7.6
- 管理器更新时间: 2026-06-08
- 本地数据: OK
- 上游仓库: https://github.com/squid-cache/squid
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Squid is a long-running open-source web proxy cache used for HTTP caching, access control, logging, traffic optimization, and content delivery.

### 项目历史

The official Squid introduction says Squid is based on the Harvest Cache Daemon from the early 1990s and was one of two forks after the Harvest project ended. The project was funded by an NSF grant for caching research before continuing through volunteer donations and occasional commercial investment.

### 采用历史

The official site describes Squid as used by companies for web traffic savings, performance, faster browsing, and static, dynamic, and streaming content delivery. The versions page notes that many operating systems include Squid in ports and package systems, and the input package-manager facts list broad coverage across Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, Alpine, Chocolatey, MacPorts, and openSUSE families.

### 使用方式

Administrators run Squid as a proxy caching server for HTTP, HTTPS, FTP, and related traffic, using its configuration reference, FAQ, wiki, logging, access controls, cache hierarchy support, and package-vendor updates for normal operations.

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

Package nerds care because Squid is one of the classic Unix network daemons: old, heavily packaged, configuration-driven, security-advisory-bearing, and still relevant wherever a local proxy cache or controlled egress point is useful.

### 时间线

- Early 1990s: Harvest Cache Daemon developed.
- 1990s: Squid forked from the Harvest cache codebase.
- 2006: Squid FAQ converted to a wiki that became the authoritative version.
- 2018: Squid 3.5.27 old-version release listed by the official versions page.
- 2023: Squid 5.9 old-version release listed by the official versions page.
- 2026: Squid 7.6 listed as the current stable release on the official versions page.

### Related projects

- Harvest Cache Daemon, NetApp NetCache, Squid cache manager, ICP, proxy authentication helpers, web-cache log analyzers.

### 来源

- <https://wiki.squid-cache.org/SquidFaq/AboutSquid>
- <https://www.squid-cache.org/Doc/>
- <https://www.squid-cache.org/Intro/>
- <https://www.squid-cache.org/Versions/>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** squid
- **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 - squid - 6.13-2+deb13u2: normalized package name match | Debian stable package indexes: squid from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Full featured Web Proxy cache (HTTP proxy GnuTLS flavour) | http://www.squid-cache.org
- Debian apt - squid-cgi - 6.13-2+deb13u2: normalized package name match | Debian stable package indexes: squid-cgi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Full featured Web Proxy cache (HTTP proxy) - control CGI | http://www.squid-cache.org
- Debian apt - squid-common - 6.13-2+deb13u2: normalized package name match | Debian stable package indexes: squid-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Full featured Web Proxy cache (HTTP proxy) - common files | http://www.squid-cache.org
- Debian apt - squid-openssl - 6.13-2+deb13u2: normalized package name match | Debian stable package indexes: squid-openssl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Full featured Web Proxy cache (HTTP proxy OpenSSL flavour) | http://www.squid-cache.org
- Debian apt - squid-purge - 6.13-2+deb13u2: normalized package name match | Debian stable package indexes: squid-purge from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Full featured Web Proxy cache (HTTP proxy) - cache management utility | http://www.squid-cache.org
- Debian apt - squidclient - 6.13-2+deb13u2: normalized package name match | Debian stable package indexes: squidclient from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Full featured Web Proxy cache (HTTP proxy) - HTTP(S) message utility | http://www.squid-cache.org
- Nix - squid: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/squid/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - squid - 6.6-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: squid from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Full featured Web Proxy cache (HTTP proxy GnuTLS flavour) | http://www.squid-cache.org
- Ubuntu apt - squid-cgi - 6.6-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: squid-cgi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Full featured Web Proxy cache (HTTP proxy) - control CGI | http://www.squid-cache.org
- Ubuntu apt - squid-common - 6.6-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: squid-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Full featured Web Proxy cache (HTTP proxy) - common files | http://www.squid-cache.org
- Ubuntu apt - squid-openssl - 6.6-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: squid-openssl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Full featured Web Proxy cache (HTTP proxy OpenSSL flavour) | http://www.squid-cache.org
- Ubuntu apt - squid-purge - 6.6-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: squid-purge from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Full featured Web Proxy cache (HTTP proxy) - cache management utility | http://www.squid-cache.org
- Ubuntu apt - squidclient - 6.6-1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: squidclient from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Full featured Web Proxy cache (HTTP proxy) - HTTP(S) message utility | http://www.squid-cache.org
- apk - squid - 7.6-r0: normalized package name match | Alpine Linux edge package indexes: squid from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Full-featured Web proxy cache server | https://www.squid-cache.org/
- apk - squid-doc - 7.6-r0: normalized package name match | Alpine Linux edge package indexes: squid-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Full-featured Web proxy cache server (documentation) | https://www.squid-cache.org/
- apk - squid-lang-af - 7.6-r0: normalized package name match | Alpine Linux edge package indexes: squid-lang-af from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | squid language pack for af | https://www.squid-cache.org/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [wwwoffle](https://pkg.so/zh-hans/brew/wwwoffle/) - Shares pkgdb curated category or tags: cli, ftp, http, networking, proxy.
- [whistle](https://pkg.so/zh-hans/brew/whistle/) - Shares pkgdb curated category or tags: cli, http, https, networking, proxy.
- [proxyfor](https://pkg.so/zh-hans/brew/proxyfor/) - Shares pkgdb curated category or tags: cli, http, https, networking, proxy.
- [unbound](https://pkg.so/zh-hans/brew/unbound/) - Shares pkgdb curated category or tags: cache, cli, networking.
- [wget](https://pkg.so/zh-hans/brew/wget/) - Shares pkgdb curated category or tags: cli, ftp, http, networking.
- [aria2](https://pkg.so/zh-hans/brew/aria2/) - Shares pkgdb curated category or tags: cli, ftp, http, networking.
- [sing-box](https://pkg.so/zh-hans/brew/sing-box/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [inetutils](https://pkg.so/zh-hans/brew/inetutils/) - Shares pkgdb curated category or tags: cli, ftp, networking.
- [trafficserver](https://pkg.so/zh-hans/brew/trafficserver/) - Local metadata places this package in an adjacent workflow. Shared terms: cache, caching, cli, http, networking.
- [nginx](https://pkg.so/zh-hans/brew/nginx/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, http, networking, openssl, openssl-3.
- [proxygen](https://pkg.so/zh-hans/brew/proxygen/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, http, networking, openssl, openssl-3.

## Combined YAML source

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


## 来源

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