# 使用 Homebrew, apk, dnf, MacPorts, pacman 安装 toxcore

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

## 安装

```sh
sudo av install brew:toxcore
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install toxcore
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install toxcore
```

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

### Linux

- apk (92%):

```sh
sudo apk add toxcore
```

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

- dnf (92%):

```sh
sudo dnf install toxcore
```

  证据: Fedora Rawhide package metadata: toxcore from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S toxcore
```

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

## 软件包事实

- **软件包键:** brew:toxcore
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/toxcore>
- **版本:** 0.2.23
- **来源摘要:** C library implementing the Tox peer to peer network protocol
- **主页:** <https://tox.chat/>
- **仓库:** <https://github.com/TokTok/c-toxcore>
- **上游文档:** <https://tox.chat/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/TokTok/c-toxcore/releases/download/v0.2.23/c-toxcore-v0.2.23.tar.xz>
- **最后更新:** 2026-06-04T01:57:58Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- DHT_bootstrap (cli)
- tox-bootstrapd (cli)
- DHT_bootstrap (别名)
- tox-bootstrapd (别名)

## 依赖

- libconfig
- libsodium
- libvpx
- opus

## 构建依赖

- cmake
- pkgconf

## 安装行为

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

## 版本和新鲜度

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

toxcore is the C implementation of the Tox peer-to-peer encrypted messaging protocol. The official repository describes Tox as a serverless instant messenger intended to make security and privacy easier for regular users, using libsodium-based encryption and authentication.

### 项目历史

The current official repository is maintained under the TokTok organization and is identified on GitHub as forked from the earlier irungentoo/toxcore repository. That lineage reflects the transition from the early Tox implementation into the current TokTok-maintained C core.

The repository has treated toxcore as a low-level cryptographic networking library rather than an end-user chat client. Its README includes a prominent warning that the library is experimental, has not been independently audited by cryptography specialists, and should be used at the user's risk.

### 采用历史

toxcore's adoption is mostly indirect: it is the shared protocol library and bootstrap tooling that downstream Tox clients and bots build on. Homebrew packages the library and its bootstrap executables, while the source facts also show packages in Alpine, Fedora, MacPorts, and Arch/pacman.

GitHub Releases record a 'First Stable API' release at v0.1.0 in December 2016. The later changelog shows an active 0.2.x line focused on hardening, testing, ToxAV fixes, group chat work, network profiling, and preserving public API compatibility across releases.

### 使用方式

Developers embed toxcore by creating a Tox instance, registering callbacks for events such as friend requests and messages, and repeatedly calling the event-loop function `tox_iterate` at the interval returned by `tox_iteration_interval`.

For package users, the Homebrew-visible executables `DHT_bootstrap` and `tox-bootstrapd` represent toxcore's infrastructure side: maintaining bootstrap nodes and helping peers enter the decentralized Tox network rather than launching a full chat UI.

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

toxcore is significant to package nerds because it is a packaged C protocol library with security-sensitive dependencies, ABI/API concerns, and downstream clients. Packaging it correctly matters for encrypted-messaging clients that rely on shared system libraries instead of vendored snapshots.

The project also illustrates the package-maintainer tension around cryptographic software: widely packaged, useful to privacy-oriented users, but officially documented as experimental and unaudited.

### 时间线

- 2016: GitHub Releases publish v0.1.0 as 'First Stable API'.
- 2024: v0.2.20 changelog includes security and ToxAV fixes.
- 2025: v0.2.21 changelog adds DNS-disable support and a network profiler.
- 2026: v0.2.22 and v0.2.23 changelog entries emphasize hardening, architectural refinement, and security fixes.

### Related projects

- The repository includes toxcore, toxav, and toxencryptsave components, and the README points readers to Tox clients, the Tox wiki, and example bots such as minitox.

### 来源

- <https://api.github.com/repos/TokTok/c-toxcore/releases>
- <https://github.com/TokTok/c-toxcore#readme>
- <https://github.com/TokTok/c-toxcore/blob/master/CHANGELOG.md>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** toxcore
- **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

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

- apk - toxcore - 0.2.23-r1: normalized package name match | Alpine Linux edge package indexes: toxcore from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Tox communication project - C core | https://tox.chat/
- apk - toxcore-bash-completion - 0.2.23-r1: normalized package name match | Alpine Linux edge package indexes: toxcore-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for toxcore | https://tox.chat/
- apk - toxcore-dev - 0.2.23-r1: normalized package name match | Alpine Linux edge package indexes: toxcore-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Tox communication project - C core (development files) | https://tox.chat/
- apk - toxcore-libs - 0.2.23-r1: normalized package name match | Alpine Linux edge package indexes: toxcore-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Tox communication project - C core (libraries) | https://tox.chat/
- dnf - toxcore - 0.2.20-5.fc45: normalized package name match | Fedora Rawhide package metadata: toxcore from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Peer to peer instant messenger | https://github.com/TokTok/c-toxcore
- dnf - toxcore-devel - 0.2.20-5.fc45: normalized package name match | Fedora Rawhide package metadata: toxcore-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for Toxcore | https://github.com/TokTok/c-toxcore
- pacman - toxcore - 1:0.2.22-2: normalized package name match | Arch Linux sync databases: toxcore from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Secure, configuration-free, P2P Skype replacement backend | https://tox.chat
- MacPorts - toxcore: normalized package name match | MacPorts ports tree: net/toxcore/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [tuntox](https://pkg.so/zh-hans/brew/tuntox/) - Popular package that depends on this formula.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [libgcrypt](https://pkg.so/zh-hans/brew/libgcrypt/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [mbedtls](https://pkg.so/zh-hans/brew/mbedtls/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [libewf](https://pkg.so/zh-hans/brew/libewf/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [libjwt](https://pkg.so/zh-hans/brew/libjwt/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [daq](https://pkg.so/zh-hans/brew/daq/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [libgfshare](https://pkg.so/zh-hans/brew/libgfshare/) - Shares pkgdb curated category or tags: c-library, cli, security.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Shares pkgdb curated category or tags: cli, security.
- [keeper-commander](https://pkg.so/zh-hans/brew/keeper-commander/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, libvpx, opus, security.
- [keepkey-agent](https://pkg.so/zh-hans/brew/keepkey-agent/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, libsodium, security.

## Combined YAML source

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