# Install libcoap with Homebrew, apk, dnf, Nix, zypper

Lightweight application-protocol for resource-constrained devices. Version 4.3.5b via Homebrew; verified 2026-04-14.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libcoap
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcoap
```

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: libcoap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libcoap
```

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

- zypper (92%):

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

  Evidence: openSUSE Tumbleweed package metadata: libcoap-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libcoap
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libcoap>
- **Version:** 4.3.5b
- **Source summary:** Lightweight application-protocol for resource-constrained devices
- **Homepage:** <https://github.com/obgm/libcoap>
- **Repository:** <https://github.com/obgm/libcoap>
- **Upstream docs:** <https://libcoap.net/doc/reference/4.3.5/man_coap.html>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/obgm/libcoap/archive/refs/tags/v4.3.5b.tar.gz>
- **Last updated:** 2026-04-14T15:17:29Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- coap-client (cli)
- coap-client-openssl (cli)
- coap-rd (cli)
- coap-rd-openssl (cli)
- coap-server (cli)
- coap-server-openssl (cli)
- coap-client (alias)
- coap-client-openssl (alias)
- coap-rd (alias)
- coap-rd-openssl (alias)
- coap-server (alias)
- coap-server-openssl (alias)

## Dependencies

- openssl@3

## Build dependencies

- autoconf
- automake
- libtool
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.3.5b
- Package-manager updated: 2026-04-14
- Local data: ok
- Upstream repository: https://github.com/obgm/libcoap
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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`.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C library implementation of CoAP | https://libcoap.net/
- dnf - libcoap-devel - 4.3.5b-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development package for libcoap | https://libcoap.net/
- dnf - libcoap-doc - 4.3.5b-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation package for libcoap | https://libcoap.net/
- dnf - libcoap-utils - 4.3.5b-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Client and server CoAP utilities | https://libcoap.net/
- zypper - libcoap-devel - 4.3.5b-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libcoap-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for libcoap | https://libcoap.net/
- zypper - libcoap-utils - 4.3.5b-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libcoap-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Utilities for Constrained Application Protocol (CoAP) | https://libcoap.net/
- zypper - libcoap3-3 - 4.3.5b-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libcoap3-3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | C implementation of Constrained Application Protocol (CoAP) | https://libcoap.net/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [liblo](https://www.automicvault.com/pkg/brew/liblo/) - Shares av.db curated category or tags: c, cli, library, network-protocol, networking.
- [gateway-go](https://www.automicvault.com/pkg/brew/gateway-go/) - Shares av.db curated category or tags: cli, iot, networking.
- [openiothub-server](https://www.automicvault.com/pkg/brew/openiothub-server/) - Shares av.db curated category or tags: cli, iot, networking.
- [usbredir](https://www.automicvault.com/pkg/brew/usbredir/) - Shares av.db curated category or tags: cli, network-protocol, networking, protocols.
- [c-ares](https://www.automicvault.com/pkg/brew/c-ares/) - Shares av.db curated category or tags: c, cli, library, networking.
- [czmq](https://www.automicvault.com/pkg/brew/czmq/) - Shares av.db curated category or tags: c, cli, library, networking.
- [goat](https://www.automicvault.com/pkg/brew/goat/) - Shares av.db curated category or tags: cli, networking, protocols.
- [hesiod](https://www.automicvault.com/pkg/brew/hesiod/) - Shares av.db curated category or tags: c, cli, library, networking.
- [proxygen](https://www.automicvault.com/pkg/brew/proxygen/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, library, networking, openssl.
- [fastnetmon](https://www.automicvault.com/pkg/brew/fastnetmon/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, network, networking, openssl.
- [h2o](https://www.automicvault.com/pkg/brew/h2o/) - Local metadata places this package in an adjacent workflow. Shared terms: c, cli, networking, openssl, openssl-3.

## Combined YAML source

View the package source record on GitHub. [combined/libcoap.yml](https://github.com/automic-vault/db/blob/main/combined/libcoap.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
