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

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

## 安装

```sh
sudo av install brew:libcoap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libcoap
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcoap
```

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

- dnf (92%):

```sh
sudo dnf install libcoap
```

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

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

- pacman (92%):

```sh
sudo pacman -S libcoap
```

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

- zypper (92%):

```sh
sudo zypper install libcoap-devel
```

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

## 软件包事实

- **软件包键:** brew:libcoap
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libcoap>
- **版本:** 4.3.5b
- **来源摘要:** Lightweight application-protocol for resource-constrained devices
- **主页:** <https://github.com/obgm/libcoap>
- **仓库:** <https://github.com/obgm/libcoap>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/obgm/libcoap/archive/refs/tags/v4.3.5b.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- coap-client (cli)
- coap-client-openssl (cli)
- coap-rd (cli)
- coap-rd-openssl (cli)
- coap-server (cli)
- coap-server-openssl (cli)
- coap-client (别名)
- coap-client-openssl (别名)
- coap-rd (别名)
- coap-rd-openssl (别名)
- coap-server (别名)
- coap-server-openssl (别名)

## 依赖

- openssl@3

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.3.5b
- 本地数据: OK
- 上游仓库: https://github.com/obgm/libcoap
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

libcoap is a C implementation of the Constrained Application Protocol, the IETF protocol standardized as RFC 7252 for low-power, lossy, and memory-constrained networks. It gives Unix and embedded developers a reusable CoAP parser, networking layer, examples, and client/server tools.

### 项目历史

The repository identifies libcoap as a C implementation of CoAP and carries copyright years beginning in 2010 for Olaf Bergmann and contributors. That places the project in the early CoAP implementation wave before the protocol was published as RFC 7252 in June 2014.

As CoAP grew from a basic REST-like protocol for constrained devices into a family of RFC extensions, libcoap accumulated support for related specifications including group communication, observing resources, block-wise transfers, CoAP over TCP/TLS/WebSockets, OSCORE, hop limit, and echo/request-token processing.

### 采用历史

libcoap's adoption follows the embedded and IoT networking ecosystem rather than desktop application culture. Its README names hosted environments including Contiki-NG, Espressif ESP-IDF, LwIP, and RIOT-OS, which explains why package managers ship both library artifacts and tools such as `coap-client`, `coap-server`, and `coap-rd`.

### 使用方式

Developers use libcoap to build CoAP clients, servers, resource directories, and test fixtures. Homebrew exposes separate OpenSSL-suffixed tools in addition to the base client, server, and resource-directory commands, making it useful both as a development library and a packet-level debugging utility.

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

libcoap is package-nerd relevant because it is a small C library sitting at the boundary between standards work and actual device networks. It is the installable thing that turns RFC language about constrained REST into commands a maintainer can run against embedded boards, gateways, and simulators.

### 时间线

- 2010: Copyright range in the official repository begins for Olaf Bergmann and contributors.
- 2014-06: RFC 7252 published CoAP as an Internet Standards Track protocol.
- 2020s: Repository documents support for multiple CoAP extension RFCs and embedded environments.

### Related projects

- Related projects and standards include RFC 7252 CoAP, Contiki-NG, RIOT-OS, LwIP, Espressif ESP-IDF, OSCORE, and the libcoap-minimal examples referenced by the project.

### 来源

- <https://datatracker.ietf.org/doc/html/rfc7252>
- <https://formulae.brew.sh/formula/libcoap>
- <https://github.com/obgm/libcoap>
- <https://libcoap.net/>


## 安全说明

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:** libcoap
- **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

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

- Nix - libcoap: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcoap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libcoap - 4.3.5b-r0: normalized package name match | Alpine Linux edge package indexes: libcoap from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A CoAP (RFC 7252) implementation | https://libcoap.net/
- apk - libcoap-dev - 4.3.5b-r0: normalized package name match | Alpine Linux edge package indexes: libcoap-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A CoAP (RFC 7252) implementation (development files) | https://libcoap.net/
- apk - libcoap-doc - 4.3.5b-r0: normalized package name match | Alpine Linux edge package indexes: libcoap-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A CoAP (RFC 7252) implementation (documentation) | https://libcoap.net/
- dnf - libcoap - 4.3.5b-3.fc45: normalized package name match | Fedora Rawhide package metadata: libcoap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | C library implementation of CoAP | https://libcoap.net/
- dnf - libcoap-devel - 4.3.5b-3.fc45: normalized package name match | Fedora Rawhide package metadata: libcoap-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development package for libcoap | https://libcoap.net/
- dnf - libcoap-doc - 4.3.5b-3.fc45: normalized package name match | Fedora Rawhide package metadata: libcoap-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation package for libcoap | https://libcoap.net/
- dnf - libcoap-utils - 4.3.5b-3.fc45: normalized package name match | Fedora Rawhide package metadata: libcoap-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Client and server CoAP utilities | https://libcoap.net/
- pacman - libcoap - 4.3.5b-1: normalized package name match | Arch Linux sync databases: libcoap from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A CoAP (RFC 7252) implementation in C | https://github.com/obgm/libcoap/
- zypper - libcoap-devel - 4.3.5b-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libcoap-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libcoap | https://libcoap.net/
- zypper - libcoap-utils - 4.3.5b-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libcoap-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Utilities for Constrained Application Protocol (CoAP) | https://libcoap.net/
- zypper - libcoap3-3 - 4.3.5b-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libcoap3-3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C implementation of Constrained Application Protocol (CoAP) | https://libcoap.net/


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [liblo](https://pkg.so/zh-hans/brew/liblo/) - Shares pkgdb curated category or tags: c, cli, library, network-protocol, networking.
- [openiothub-server](https://pkg.so/zh-hans/brew/openiothub-server/) - Shares pkgdb curated category or tags: cli, iot, networking.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [czmq](https://pkg.so/zh-hans/brew/czmq/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [libnet](https://pkg.so/zh-hans/brew/libnet/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [xmlrpc-c](https://pkg.so/zh-hans/brew/xmlrpc-c/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [sofia-sip](https://pkg.so/zh-hans/brew/sofia-sip/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [hesiod](https://pkg.so/zh-hans/brew/hesiod/) - Shares pkgdb curated category or tags: c, cli, library, networking.
- [proxygen](https://pkg.so/zh-hans/brew/proxygen/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, library, networking, openssl.
- [civetweb](https://pkg.so/zh-hans/brew/civetweb/) - Local metadata places this package in an adjacent workflow. Shared terms: c, cli, networking, openssl, openssl-3.
- [fastnetmon](https://pkg.so/zh-hans/brew/fastnetmon/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, network, networking, openssl.

## Combined YAML source

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