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

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

## 安装

```sh
sudo av install brew:distcc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install distcc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install distcc
```

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

### Linux

- apk (92%):

```sh
sudo apk add distcc
```

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

- Debian apt (92%):

```sh
sudo apt install distcc
```

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

- dnf (92%):

```sh
sudo dnf install distcc
```

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

  证据: nixpkgs package indexes: distcc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S distcc
```

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

- zypper (92%):

```sh
sudo zypper install distcc
```

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

## 软件包事实

- **软件包键:** brew:distcc
- **软件包管理器:** Homebrew
- **版本:** 3.4
- **来源摘要:** Distributed compiler client and server
- **主页:** <https://github.com/distcc/distcc/>
- **仓库:** <https://github.com/distcc/distcc>
- **最后更新:** 2026-07-10T19:03:07-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- distcc (别名)
- distccd (别名)
- distccmon-text (别名)
- lsdistcc (别名)
- pump (别名)
- update-distcc-symlinks (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

distcc is a distributed C, C++, and Objective-C compilation front end originally written by Martin Pool. It matters to package and ports maintainers because it attacks one of the classic pain points of source-based packaging: repeated local compiler work during large builds.

### 项目历史

The project presents itself as a free distributed C/C++ compiler system that can run builds across several networked machines without requiring a shared filesystem, synchronized clocks, or matching installed headers and libraries on every host. Its 3.0 series added pump mode, a Google-contributed path that distributes preprocessing as well as compilation when client and server systems are compatible enough.

### 采用历史

distcc's own documentation describes use at scales ranging from a few build hosts to environments with hundreds of distcc servers supporting many simultaneous compiles. The project also records later maintainer transitions and continued releases, including 3.2 in 2011, 3.3 in 2018, 3.4 in 2021, and ongoing 3.x development.

### 使用方式

Users typically export a host list through DISTCC_HOSTS or place host configuration under the distcc directory, then invoke parallel builds through make -j with CC=distcc or compiler masquerading. The server side is handled by distccd, while monitoring and helper commands support day-to-day build-farm operation.

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

distcc is a long-running example of Unix build acceleration that works with ordinary compiler invocations instead of replacing the whole build system. That makes it especially attractive in package-manager culture, where maintainers often need to build large C and C++ dependency graphs while preserving normal toolchain semantics.

### 时间线

- 2008: distcc 3.0 adds pump mode for distributed preprocessing.
- 2011: distcc 3.2 adds IPv6 support and optional GSS-API authentication.
- 2018: distcc 3.3 adds cross-compilation support and Python 3 support.
- 2021: distcc 3.4 continues the 3.x line with build and monitoring fixes.

### Related projects

- ccache is often paired conceptually with distcc because both reduce C and C++ build cost, though ccache avoids repeated compilation through local cache hits while distcc spreads remaining compilation across machines.
- icecream occupies the same distributed-compilation niche but uses a scheduler-oriented model, while distcc stays close to conventional compiler command lines.

### 来源

- <https://github.com/distcc/distcc#readme>
- <https://raw.githubusercontent.com/distcc/distcc/master/NEWS>
- <https://distcc.github.io/man/distcc_1.html>
- <https://distcc.github.io/man/distccd_1.html>


## 安全说明

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


## 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: $DISTCC_DIR/hosts, ~/.distcc/hosts
## 其他软件包管理器记录

- Debian apt - distcc - 3.4+really3.4-12: normalized package name match | Debian stable package indexes: distcc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple distributed compiler client and server | https://distcc.github.io/
- Debian apt - distcc-pump - 3.4+really3.4-12: normalized package name match | Debian stable package indexes: distcc-pump from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | pump mode for distcc a distributed compiler client and server | https://distcc.github.io/
- Debian apt - distccmon-gnome - 3.4+really3.4-12: normalized package name match | Debian stable package indexes: distccmon-gnome from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GTK+ monitor for distcc a distributed client and server | https://distcc.github.io/
- Nix - distcc: normalized package name match | nixpkgs package indexes: distcc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - distcc - 3.4+really3.4-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: distcc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | simple distributed compiler client and server | https://distcc.github.io/
- Ubuntu apt - distcc-pump - 3.4+really3.4-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: distcc-pump from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | pump mode for distcc a distributed compiler client and server | https://distcc.github.io/
- Ubuntu apt - distccmon-gnome - 3.4+really3.4-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: distccmon-gnome from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GTK+ monitor for distcc a distributed client and server | https://distcc.github.io/
- apk - distcc - 3.4-r10: normalized package name match | Alpine Linux edge package indexes: distcc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Ddistributed C, C++, Obj C compiler | https://github.com/distcc/distcc
- apk - distcc-doc - 3.4-r10: normalized package name match | Alpine Linux edge package indexes: distcc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Ddistributed C, C++, Obj C compiler (documentation) | https://github.com/distcc/distcc
- apk - distcc-openrc - 3.4-r10: normalized package name match | Alpine Linux edge package indexes: distcc-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Ddistributed C, C++, Obj C compiler (OpenRC init scripts) | https://github.com/distcc/distcc
- apk - distcc-pump - 3.4-r10: normalized package name match | Alpine Linux edge package indexes: distcc-pump from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | pump mode for distcc a distributed compiler client and server | https://github.com/distcc/distcc
- apk - distcc-pump-pyc - 3.4-r10: normalized package name match | Alpine Linux edge package indexes: distcc-pump-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for distcc-pump | https://github.com/distcc/distcc
- dnf - distcc - 3.4-17.fc45: normalized package name match | Fedora Rawhide package metadata: distcc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Distributed C/C++ compilation | https://github.com/distcc/distcc
- dnf - distcc-gnome - 3.4-17.fc45: normalized package name match | Fedora Rawhide package metadata: distcc-gnome from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Gnome frontend of distcc monitoring tool | https://github.com/distcc/distcc
- dnf - distcc-server - 3.4-17.fc45: normalized package name match | Fedora Rawhide package metadata: distcc-server from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Server for distributed C/C++ compilation | https://github.com/distcc/distcc
- pacman - distcc - 3.4-15: normalized package name match | Arch Linux sync databases: distcc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Distributed compilation service for C, C++ and Objective-C | https://github.com/distcc/distcc


## Combined YAML source

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


## 来源

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