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

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

## 安装

```sh
sudo av install brew:libnice
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libnice
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libnice
```

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

### Linux

- apk (92%):

```sh
sudo apk add libnice
```

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

- dnf (92%):

```sh
sudo dnf install libnice
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#libnice
```

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

- pacman (92%):

```sh
sudo pacman -S libnice
```

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

- zypper (92%):

```sh
sudo zypper install libnice
```

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

- Debian apt (92%):

```sh
sudo apt install gir1.2-nice-0.1
```

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

## 软件包事实

- **软件包键:** brew:libnice
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libnice>
- **版本:** 0.1.23
- **来源摘要:** GLib ICE implementation
- **主页:** <https://wiki.freedesktop.org/nice/>
- **仓库:** <https://github.com/libnice/libnice>
- **上游文档:** <https://wiki.freedesktop.org/nice/>
- **许可证:** LGPL-2.1-or-later OR MPL-1.1
- **源码归档:** <https://libnice.freedesktop.org/releases/libnice-0.1.23.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- stunbdc (cli)
- stund (cli)
- stunbdc (别名)
- stund (别名)

## 依赖

- gettext
- glib
- gnutls

## 构建依赖

- meson
- ninja
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.23
- 本地数据: OK
- 上游仓库: https://wiki.freedesktop.org/nice/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libnice is the freedesktop.org GLib implementation of Interactive Connectivity Establishment, the NAT traversal technique used by real-time communication systems. It provides a GLib library, STUN/TURN support, pseudo-TCP support, and GStreamer elements.

### 项目历史

The project released 0.0.1 in November 2008 and 0.1.0 in January 2011. Its documentation frames the library around ICE standards work, first RFC 5245 and later RFC 8445, with compatibility paths for older STUN, early ICE drafts, Google Talk, and Microsoft variants.

Collabora sponsored libnice, and the release tags show long-running maintenance by Youness Alaoui and Olivier Crete. The project uses freedesktop.org GitLab as upstream and explicitly directs issues and merge requests there rather than to mirrors.

### 采用历史

libnice became important wherever GNOME/GLib, GStreamer, SIP, XMPP Jingle, and WebRTC-style peer-to-peer media needed ICE without embedding a full browser stack. The project page states that it has been tested for interoperability with Google's WebRTC library and with older Microsoft real-time communication implementations.

### 使用方式

Applications create a NiceAgent, add streams, gather candidates, exchange credentials and candidates, and then move data through libnice APIs or through nicesrc and nicesink GStreamer elements. The reference manual separates ICE, STUN, TURN, and pseudo-TCP APIs.

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

libnice sits at a dense packaging junction: GLib, GStreamer, STUN, TURN, ICE, WebRTC interop, and freedesktop hosting. It matters because real-time communication stacks can depend on it without directly vendoring browser networking code.

### 时间线

- 2008-11-05: GitLab tag metadata records libnice 0.0.1.
- 2011-01-20: GitLab tag metadata records libnice 0.1.0.
- 2015-04-28: GitLab tag metadata records libnice 0.1.13.
- 2020-10-20: GitLab tag metadata records libnice 0.1.18.
- 2025-11-27: GitLab tag metadata records libnice 0.1.23.

### Related projects

- Related standards and protocols include RFC 8445 ICE, RFC 5245 ICE, RFC 5389 STUN, RFC 5766 TURN, RFC 6544 ICE-TCP, and RFC 8838 trickle ICE.
- Related software ecosystems named by the project include GLib, GStreamer, SIP, XMPP Jingle, WebRTC, Google Talk, Microsoft Lync, and Skype for Business.

### 来源

- <https://gitlab.freedesktop.org/api/v4/projects/libnice%2Flibnice/repository/tags?per_page=100>
- <https://libnice.freedesktop.org/>
- <https://libnice.freedesktop.org/libnice/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - gir1.2-nice-0.1 - 0.1.22-1: normalized package name match | Debian stable package indexes: gir1.2-nice-0.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ICE library (GObject introspection) | https://libnice.freedesktop.org/
- Debian apt - gstreamer1.0-nice - 0.1.22-1: normalized package name match | Debian stable package indexes: gstreamer1.0-nice from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ICE library (GStreamer plugin) | https://libnice.freedesktop.org/
- Debian apt - libnice-dev - 0.1.22-1: normalized package name match | Debian stable package indexes: libnice-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ICE library (development files) | https://libnice.freedesktop.org/
- Debian apt - libnice-doc - 0.1.22-1: normalized package name match | Debian stable package indexes: libnice-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ICE library (documentation) | https://libnice.freedesktop.org/
- Debian apt - libnice10 - 0.1.22-1: normalized package name match | Debian stable package indexes: libnice10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ICE library (shared library) | https://libnice.freedesktop.org/
- Nix - libnice: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libnice/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-nice-0.1 - 0.1.21-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-nice-0.1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ICE library (GObject introspection) | https://nice.freedesktop.org/
- Ubuntu apt - gstreamer1.0-nice - 0.1.21-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gstreamer1.0-nice from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ICE library (GStreamer plugin) | https://nice.freedesktop.org/
- Ubuntu apt - libnice-dev - 0.1.21-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnice-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ICE library (development files) | https://nice.freedesktop.org/
- Ubuntu apt - libnice-doc - 0.1.21-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnice-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ICE library (documentation) | https://nice.freedesktop.org/
- Ubuntu apt - libnice10 - 0.1.21-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnice10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ICE library (shared library) | https://nice.freedesktop.org/
- apk - libnice - 0.1.22-r0: normalized package name match | Alpine Linux edge package indexes: libnice from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GLib ICE implementation | https://libnice.freedesktop.org/
- apk - libnice-dbg - 0.1.22-r0: normalized package name match | Alpine Linux edge package indexes: libnice-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GLib ICE implementation (debug symbols) | https://libnice.freedesktop.org/
- apk - libnice-dev - 0.1.22-r0: normalized package name match | Alpine Linux edge package indexes: libnice-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GLib ICE implementation (development files) | https://libnice.freedesktop.org/
- apk - libnice-gstreamer - 0.1.22-r0: normalized package name match | Alpine Linux edge package indexes: libnice-gstreamer from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Gstreamer 1.0 plugin for libnice | https://libnice.freedesktop.org/
- dnf - libnice - 0.1.23-3.fc45: normalized package name match | Fedora Rawhide package metadata: libnice from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | GLib ICE implementation | https://nice.freedesktop.org/


## 相关链接

- [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.
- [Documentation packages](https://pkg.so/zh-hans/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [gstreamer](https://pkg.so/zh-hans/brew/gstreamer/) - Popular package that depends on this formula.
- [coturn](https://pkg.so/zh-hans/brew/coturn/) - Shares pkgdb curated category or tags: cli, networking, stun, turn.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: cli, library, networking.
- [curl](https://pkg.so/zh-hans/brew/curl/) - Shares pkgdb curated category or tags: cli, library, networking.
- [libidn2](https://pkg.so/zh-hans/brew/libidn2/) - Shares pkgdb curated category or tags: cli, library, networking.
- [freerdp](https://pkg.so/zh-hans/brew/freerdp/) - Shares pkgdb curated category or tags: cli, library, networking.
- [czmq](https://pkg.so/zh-hans/brew/czmq/) - Shares pkgdb curated category or tags: cli, library, networking.
- [libnet](https://pkg.so/zh-hans/brew/libnet/) - Shares pkgdb curated category or tags: cli, library, networking.
- [libproxy](https://pkg.so/zh-hans/brew/libproxy/) - Shares pkgdb curated category or tags: cli, library, networking.
- [bitlbee](https://pkg.so/zh-hans/brew/bitlbee/) - Local package facts share a topical domain. Shared terms: cli, gettext, glib, gnutls, networking.
- [dissent](https://pkg.so/zh-hans/brew/dissent/) - Local package facts share a topical domain. Shared terms: cli, communication, gettext, glib, networking.

## Combined YAML source

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