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

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

## 安装

```sh
sudo av install brew:libotr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libotr
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libotr
```

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

### Linux

- apk (92%):

```sh
sudo apk add libotr
```

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

- dnf (92%):

```sh
sudo dnf install libotr
```

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

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

- pacman (92%):

```sh
sudo pacman -S libotr
```

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

- Debian apt (92%):

```sh
sudo apt install libotr5-bin
```

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

- zypper (92%):

```sh
sudo zypper install libotr-devel
```

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

## 软件包事实

- **软件包键:** brew:libotr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libotr>
- **版本:** 4.1.1
- **来源摘要:** Off-The-Record (OTR) messaging library
- **主页:** <https://otr.cypherpunks.ca/>
- **上游文档:** <https://otr.cypherpunks.ca/>
- **许可证:** LGPL-2.1-only AND GPL-2.0-only
- **源码归档:** <https://otr.cypherpunks.ca/libotr-4.1.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- otr_mackey (cli)
- otr_modify (cli)
- otr_parse (cli)
- otr_readforge (cli)
- otr_remac (cli)
- otr_sesskeys (cli)
- otr_mackey (别名)
- otr_modify (别名)
- otr_parse (别名)
- otr_readforge (别名)
- otr_remac (别名)
- otr_sesskeys (别名)

## 依赖

- libgcrypt
- libgpg-error

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

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

libotr is the portable C library and toolkit for Off-the-Record Messaging, a protocol for private instant-messaging conversations with encryption, authentication during the conversation, deniability after the fact, and perfect forward secrecy.

### 项目历史

OTR came from academic and cypherpunk work on making instant messaging behave more like an off-the-record conversation than signed email. The official OTR site links the library, the Pidgin plugin, protocol descriptions, and the original research papers as one software-and-protocol family.

libotr served as the reference C implementation for client developers. The project paired the LGPL library with GPL toolkit programs and with pidgin-otr, making it practical for multiprotocol IM clients to add OTR without each client reimplementing the cryptographic state machine.

### 采用历史

OTR became especially associated with desktop XMPP and multiprotocol IM clients. XMPP Extension Protocol 0364 described OTR as the de facto standard for end-to-end encryption in XMPP, while the OTR site maintained user-facing downloads for pidgin-otr, source repositories, protocol documents, and implementation lists.

### 使用方式

Applications link libotr to negotiate OTR sessions, run the authenticated key exchange, encrypt and authenticate data messages, and expose higher-level verification flows such as the Socialist Millionaires' Protocol. The Homebrew package also installs toolkit programs for inspecting, modifying, and testing OTR message artifacts.

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

libotr matters because it is a small library package carrying a big protocol story: it let package managers deliver interoperable deniable encryption to chat clients before modern app-specific encrypted messengers became dominant. Its 2016 security release also shows why distro maintainers cared about keeping even niche crypto libraries patched.

### 时间线

- 2004: The OTR design was published in the WPES paper linked from the official OTR documentation.
- 2012: libotr 4.0.0 and pidgin-otr 4.0.0 were released.
- 2014: libotr 4.1.0 was released with build-system, secure-memory, constant-time comparison, and API changes.
- 2016: libotr 4.1.1 fixed CVE-2016-2851 and tightened protocol parsing.

### Related projects

- pidgin-otr is the best-known client plugin distributed alongside libotr by the OTR project.
- The OTR protocol documents define the wire protocol that libotr implements.
- XMPP clients and multiprotocol IM clients were the main ecosystem where libotr was reused.

### 来源

- <https://dl.acm.org/doi/10.1145/1102199.1102216>
- <https://otr.cypherpunks.ca/>
- <https://otr.cypherpunks.ca/Protocol-v3-4.0.0.html>
- <https://otr.cypherpunks.ca/news.php>
- <https://xmpp.org/extensions/xep-0364.html>


## 安全说明

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:** libotr
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - libotr5-bin - 4.1.1-6: normalized package name match | Debian stable package indexes: libotr5-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | toolkit for Off-the-Record Messaging library | https://otr.cypherpunks.ca/
- Debian apt - libotr5-dev - 4.1.1-6: normalized package name match | Debian stable package indexes: libotr5-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Off-the-Record Messaging library development files | https://otr.cypherpunks.ca/
- Debian apt - libotr5t64 - 4.1.1-6: normalized package name match | Debian stable package indexes: libotr5t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Off-the-Record Messaging library | https://otr.cypherpunks.ca/
- Nix - libotr: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libotr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libotr5-bin - 4.1.1-5.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libotr5-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | toolkit for Off-the-Record Messaging library | https://otr.cypherpunks.ca/
- Ubuntu apt - libotr5-dev - 4.1.1-5.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libotr5-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Off-the-Record Messaging library development files | https://otr.cypherpunks.ca/
- Ubuntu apt - libotr5t64 - 4.1.1-5.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libotr5t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Off-the-Record Messaging library | https://otr.cypherpunks.ca/
- apk - libotr - 4.1.1-r5: normalized package name match | Alpine Linux edge package indexes: libotr from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Off The Record Messaging, an encryption library for secure IM conversations | http://otr.cypherpunks.ca/
- apk - libotr-dev - 4.1.1-r5: normalized package name match | Alpine Linux edge package indexes: libotr-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Off The Record Messaging, an encryption library for secure IM conversations (development files) | http://otr.cypherpunks.ca/
- apk - libotr-doc - 4.1.1-r5: normalized package name match | Alpine Linux edge package indexes: libotr-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Off The Record Messaging, an encryption library for secure IM conversations (documentation) | http://otr.cypherpunks.ca/
- apk - libotr-tools - 4.1.1-r5: normalized package name match | Alpine Linux edge package indexes: libotr-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | libotr tools | http://otr.cypherpunks.ca/
- dnf - libotr - 4.1.1-26.fc45: normalized package name match | Fedora Rawhide package metadata: libotr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Off-The-Record Messaging library and toolkit | http://otr.cypherpunks.ca/
- dnf - libotr-devel - 4.1.1-26.fc45: normalized package name match | Fedora Rawhide package metadata: libotr-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development library and include files for libotr | http://otr.cypherpunks.ca/
- pacman - libotr - 4.1.1-6: normalized package name match | Arch Linux sync databases: libotr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Off-the-Record Messaging Library and Toolkit | https://otr.cypherpunks.ca/
- zypper - libotr-devel - 4.1.1-4.14: normalized package name match | openSUSE Tumbleweed package metadata: libotr-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Include files and development libraries | https://www.cypherpunks.ca/otr/
- zypper - libotr-tools - 4.1.1-4.14: normalized package name match | openSUSE Tumbleweed package metadata: libotr-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | "Off The Record" messaging library toolkit | https://www.cypherpunks.ca/otr/


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [libgpg-error](https://pkg.so/zh-hans/brew/libgpg-error/) - Runtime dependency declared by Homebrew.
- [libgcrypt](https://pkg.so/zh-hans/brew/libgcrypt/) - Runtime dependency declared by Homebrew.
- [pidgin](https://pkg.so/zh-hans/brew/pidgin/) - Popular package that depends on this formula.
- [profanity](https://pkg.so/zh-hans/brew/profanity/) - Popular package that depends on this formula.
- [mcabber](https://pkg.so/zh-hans/brew/mcabber/) - Popular package that depends on this formula.
- [mat2](https://pkg.so/zh-hans/brew/mat2/) - Shares pkgdb curated category or tags: cli, privacy, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [nss](https://pkg.so/zh-hans/brew/nss/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [sqlcipher](https://pkg.so/zh-hans/brew/sqlcipher/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [opensc](https://pkg.so/zh-hans/brew/opensc/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [botan](https://pkg.so/zh-hans/brew/botan/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [pdfcrack](https://pkg.so/zh-hans/brew/pdfcrack/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [gnupg-pkcs11-scd](https://pkg.so/zh-hans/brew/gnupg-pkcs11-scd/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptography, error, libgcrypt, libgpg.
- [ntbtls](https://pkg.so/zh-hans/brew/ntbtls/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptography, error, libgcrypt, libgpg.
- [aide](https://pkg.so/zh-hans/brew/aide/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, error, libgcrypt, libgpg, libgpg-error.

## Combined YAML source

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