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

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

## 安装

```sh
sudo av install brew:coturn
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install coturn
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add coturn
```

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

- Debian apt (92%):

```sh
sudo apt install coturn
```

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

- dnf (92%):

```sh
sudo dnf install coturn
```

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

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

- pacman (92%):

```sh
sudo pacman -S coturn
```

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

- zypper (92%):

```sh
sudo zypper install coturn
```

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

## 软件包事实

- **软件包键:** brew:coturn
- **软件包管理器:** Homebrew
- **版本:** 4.16.0
- **来源摘要:** Free open source implementation of TURN and STUN Server
- **主页:** <https://github.com/coturn/coturn>
- **仓库:** <https://github.com/coturn/coturn>
- **最后更新:** 2026-07-27T11:04:21Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- turnadmin (别名)
- turnserver (别名)
- turnutils_natdiscovery (别名)
- turnutils_oauth (别名)
- turnutils_peer (别名)
- turnutils_stunclient (别名)
- turnutils_uclient (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

coturn is a widely packaged open-source STUN/TURN server used for NAT traversal in VoIP, WebRTC, and other real-time communication systems. It is infrastructure software: once installed, it is usually run as a network service rather than as an interactive CLI.

### 项目历史

The coturn/coturn repository was created in July 2015 and the README describes the project as a free open-source implementation of TURN and STUN server functionality. Its source tree includes server, administration, utility, database, Docker, and documentation components, reflecting a long-lived service package rather than a single-purpose command.

### 采用历史

coturn became a default choice in many self-hosted and distro-packaged WebRTC stacks because TURN is required when direct peer-to-peer connectivity fails. The README explicitly calls out Linux distribution packages and Docker images, and package metadata shows it available across Homebrew, Debian/Ubuntu, Fedora-style, Arch, Alpine, Nix, and zypper ecosystems.

### 使用方式

Common use is to install the package, configure `turnserver.conf`, run `turnserver`, and manage users or credentials with `turnadmin` and the configured backend database. The project supports UDP, TCP, TLS, DTLS, several user database backends, monitoring integrations, and a management interface.

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

coturn is package-significant because it sits at the boundary between library packaging and operations packaging: distros must ship binaries, service files, example configs, database paths, TLS/OpenSSL integration, and upgrade-safe defaults for a daemon that often fronts production media traffic.

### 时间线

- 2015: coturn/coturn repository created.
- 2017: GitHub releases were being published from the repository.
- 2020: Wiki pages documented configuration, downloads, and command references.
- 2026: Project remained active with new releases.

### Related projects

- STUN, TURN, ICE, WebRTC, VoIP servers, libevent, OpenSSL, Redis, PostgreSQL, MySQL/MariaDB, SQLite.

### 来源

- <https://github.com/coturn/coturn>
- <https://github.com/coturn/coturn/wiki>
- <https://api.github.com/repos/coturn/coturn>
- <https://api.github.com/repos/coturn/coturn/releases?per_page=100>


## 安全说明

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: turnserver.conf, etc/turnserver.conf, ../etc/turnserver.conf, /etc/turnserver.conf, /usr/local/etc/turnserver.conf

## Credential files

- Unix: /var/db/turndb, /var/lib/turn/turndb, turnserver.conf
## 其他软件包管理器记录

- Debian apt - coturn - 4.6.1-2: normalized package name match | Debian stable package indexes: coturn from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | TURN and STUN server for VoIP | https://github.com/coturn/coturn/
- Nix - coturn: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/coturn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - coturn - 4.6.1-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: coturn from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | TURN and STUN server for VoIP | https://github.com/coturn/coturn/
- apk - coturn - 4.14.0-r0: normalized package name match | Alpine Linux edge package indexes: coturn from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Free open source implementation of TURN and STUN Server | https://github.com/coturn/coturn
- apk - coturn-dev - 4.14.0-r0: normalized package name match | Alpine Linux edge package indexes: coturn-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Free open source implementation of TURN and STUN Server (development files) | https://github.com/coturn/coturn
- apk - coturn-doc - 4.14.0-r0: normalized package name match | Alpine Linux edge package indexes: coturn-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Free open source implementation of TURN and STUN Server (documentation) | https://github.com/coturn/coturn
- apk - coturn-openrc - 4.14.0-r0: normalized package name match | Alpine Linux edge package indexes: coturn-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Free open source implementation of TURN and STUN Server (OpenRC init scripts) | https://github.com/coturn/coturn
- apk - coturn-static - 4.14.0-r0: normalized package name match | Alpine Linux edge package indexes: coturn-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Free open source implementation of TURN and STUN Server (static library) | https://github.com/coturn/coturn
- dnf - coturn - 4.16.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: coturn from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | TURN/STUN & ICE Server | https://github.com/coturn/coturn/
- dnf - coturn-client-devel - 4.16.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: coturn-client-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Coturn client development headers | https://github.com/coturn/coturn/
- dnf - coturn-client-libs - 4.16.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: coturn-client-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | TURN client static library | https://github.com/coturn/coturn/
- dnf - coturn-utils - 4.16.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: coturn-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Coturn utils | https://github.com/coturn/coturn/
- pacman - coturn - 4.16.0-1: normalized package name match | Arch Linux sync databases: coturn from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Open-source implementation of TURN and STUN server | https://github.com/coturn/coturn
- zypper - coturn - 4.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: coturn from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | TURN and STUN server for VoIP | https://github.com/coturn/coturn/
- zypper - coturn-devel - 4.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: coturn-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Coturn development headers | https://github.com/coturn/coturn/
- zypper - coturn-utils - 4.15.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: coturn-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Coturn utils | https://github.com/coturn/coturn/


## Combined YAML source

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