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

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

## 安装

```sh
sudo av install brew:libproxy
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libproxy
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libproxy
```

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

### Linux

- apk (92%):

```sh
sudo apk add libproxy
```

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

- dnf (92%):

```sh
sudo dnf install libproxy
```

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

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

- pacman (92%):

```sh
sudo pacman -S libproxy
```

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

- Debian apt (92%):

```sh
sudo apt install libproxy-dev
```

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

## 软件包事实

- **软件包键:** brew:libproxy
- **软件包管理器:** Homebrew
- **版本:** 0.5.12
- **来源摘要:** Library that provides automatic proxy configuration management
- **主页:** <https://libproxy.github.io/libproxy/>
- **仓库:** <https://github.com/libproxy/libproxy>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- proxy (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

libproxy is a cross-platform library for automatic proxy configuration. It exists so applications can ask one question, how to reach a network resource, without each application reimplementing environment-variable parsing, desktop proxy settings, PAC, WPAD, and network-change behavior.

### 项目历史

The project originated before its GitHub repository; the 0.4.12 release notes on 2016-01-12 explicitly say development moved to `github.com/libproxy/libproxy`. The GitHub repository itself was created on 2015-04-17.

The 0.4 series carried the traditional plugin-heavy proxy resolver stack, including desktop-environment integration and JavaScript engines for PAC. In 2023, the 0.5.0 release included a complete rewrite, and subsequent 0.5.x releases concentrated on platform behavior, Windows handling, XDG Desktop Portal support, PAC edge cases, packaging, and build cleanup.

### 采用历史

libproxy spread through desktop and distribution ecosystems because proxy configuration is a cross-application problem. Its README lists support for Windows, Mac, and Linux/UNIX, and the repository displays Repology badges for Arch, Debian, Fedora, FreeBSD, Gentoo, Homebrew, MSYS2, openSUSE, Ubuntu, and others.

### 使用方式

Applications and libraries use libproxy to resolve the proxy or direct connection to use for a URL. Homebrew also installs the `proxy` command, giving users a small CLI surface around the same automatic proxy-resolution behavior.

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

libproxy is package-nerd significant because it is plumbing: when proxy auto-detection is wrong, every downloader, updater, package manager, and network client feels broken. Packaging it consistently lets desktop and CLI software share one resolver instead of each shipping a slightly different proxy stack.

The 0.5 rewrite and later fixes show why distributions care about this library despite its small API. Build options, PAC JavaScript engines, desktop plugins, and platform-specific proxy stores all affect whether higher-level network software works behind corporate and campus proxies.

### 时间线

- 2015-04-17: The GitHub repository was created.
- 2016-01-12: Version 0.4.12 noted the move of development to GitHub.
- 2020-12-04: Version 0.4.16 fixed CVE-2020-26154 and CVE-2020-25219 and updated PAC-related internals.
- 2023-05-15: Version 0.5.0 shipped a complete rewrite.
- 2024-04-25: Version 0.5.6 added XDG Desktop Portal proxy resolver support.

### Related projects

- GNOME, KDE, XDG Desktop Portal, PAC and WPAD implementations, GLib/GIO networking, curl-like downloaders, and operating-system proxy settings are the related ecosystem.

### 来源

- <https://api.github.com/repos/libproxy/libproxy>
- <https://api.github.com/repos/libproxy/libproxy/releases>
- <https://formulae.brew.sh/formula/libproxy>
- <https://github.com/libproxy/libproxy>
- <https://libproxy.github.io/libproxy>
- <https://raw.githubusercontent.com/libproxy/libproxy/main/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

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

- Debian apt - libproxy-dev - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | automatic proxy configuration management library (devel) | https://libproxy.github.io/libproxy/
- Debian apt - libproxy-tools - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | automatic proxy configuration management library (tools) | https://libproxy.github.io/libproxy/
- Debian apt - libproxy1-plugin-gsettings - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy1-plugin-gsettings from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package for libproxy GSettings plugin | https://libproxy.github.io/libproxy/
- Debian apt - libproxy1-plugin-kconfig - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy1-plugin-kconfig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package for libproxy KConfig plugin | https://libproxy.github.io/libproxy/
- Debian apt - libproxy1-plugin-networkmanager - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy1-plugin-networkmanager from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package for libproxy NetworkManager plugin | https://libproxy.github.io/libproxy/
- Debian apt - libproxy1-plugin-webkit - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy1-plugin-webkit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package for libproxy Webkit plugin | https://libproxy.github.io/libproxy/
- Debian apt - libproxy1v5 - 0.5.9-1: normalized package name match | Debian stable package indexes: libproxy1v5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | automatic proxy configuration management library (shared) | https://libproxy.github.io/libproxy/
- Nix - libproxy: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libproxy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libproxy-dev - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | automatic proxy configuration management library (devel) | https://libproxy.github.io/libproxy/
- Ubuntu apt - libproxy-tools - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | automatic proxy configuration management library (tools) | https://libproxy.github.io/libproxy/
- Ubuntu apt - libproxy1-plugin-gsettings - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy1-plugin-gsettings from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | transitional package for libproxy GSettings plugin | https://libproxy.github.io/libproxy/
- Ubuntu apt - libproxy1-plugin-kconfig - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy1-plugin-kconfig from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package for libproxy KConfig plugin | https://libproxy.github.io/libproxy/
- Ubuntu apt - libproxy1-plugin-networkmanager - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy1-plugin-networkmanager from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | transitional package for libproxy NetworkManager plugin | https://libproxy.github.io/libproxy/
- Ubuntu apt - libproxy1-plugin-webkit - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy1-plugin-webkit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package for libproxy Webkit plugin | https://libproxy.github.io/libproxy/
- Ubuntu apt - libproxy1v5 - 0.5.4-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libproxy1v5 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | automatic proxy configuration management library (shared) | https://libproxy.github.io/libproxy/
- apk - libproxy - 0.5.12-r0: normalized package name match | Alpine Linux edge package indexes: libproxy from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library handling all the details of proxy configuration | https://github.com/libproxy/libproxy


## Combined YAML source

View the package source record on GitHub. [combined/libproxy.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libproxy.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
