# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 7.6
- **来源摘要:** Advanced proxy caching server for HTTP, HTTPS, FTP, and Gopher
- **主页:** <https://www.squid-cache.org/>
- **仓库:** <https://github.com/squid-cache/squid>
- **最后更新:** 2026-06-08T13:34:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- squid (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
