# Install libevent with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Asynchronous event library. Version 2.1.13 via Homebrew; verified 2026-07-01.

## Install

```sh
sudo av install brew:libevent
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libevent
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libevent
```

  Evidence: MacPorts ports tree: devel/libevent/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libevent
```

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

- Debian apt (92%):

```sh
sudo apt install libevent-2.1-7t64
```

  Evidence: Debian stable package indexes: libevent-2.1-7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libevent
```

  Evidence: Fedora Rawhide package metadata: libevent 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#libevent
```

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

- pacman (92%):

```sh
sudo pacman -S libevent
```

  Evidence: Arch Linux sync databases: libevent from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libevent-2_1-7
```

  Evidence: openSUSE Tumbleweed package metadata: libevent-2_1-7 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libevent
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libevent>
- **Version:** 2.1.13
- **Source summary:** Asynchronous event library
- **Homepage:** <https://libevent.org/>
- **Repository:** <https://github.com/libevent/libevent>
- **Upstream docs:** <https://libevent.org/>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/libevent/libevent/archive/refs/tags/release-2.1.13-stable.tar.gz>
- **Last updated:** 2026-07-01T17:46:43Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- event_rpcgen.py (cli)
- event_rpcgen.py (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: 2.1.13
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://github.com/libevent/libevent
- info: No cached GitHub release or tag data was available.
## Project history and usage

libevent is a portable C event-notification library for scalable network servers and event-driven programs.

### Project history

The libevent site describes the library as a replacement for hand-written event loops in network servers: programs register callbacks for file-descriptor readiness, timers, signals, and higher-level buffered I/O rather than hard-coding select or poll loops. The site credits maintenance to Nick Mathewson, Azat Khuzhin, and Niels Provos.

The project grew around the C10K-era problem of serving many simultaneous connections portably across backends such as select, poll, epoll, kqueue, /dev/poll, Solaris event ports, and Windows APIs. Over time it added buffered network I/O, DNS, HTTP, RPC, SSL-capable bufferevents, thread hooks, and extensive portability code.

### Adoption history

The official site lists widely used downstreams including Chromium, memcached, Transmission, NTP's SNTP code, tmux, Tor, Prosody, PgBouncer, and coturn. That breadth made libevent one of the standard C event-loop dependencies in Unix package collections.

### How it is used

Typical applications create an event_base, register events or bufferevents, and run event_base_dispatch. The official documentation covers setup, event bases, timers, buffered I/O, asynchronous DNS, embedded HTTP servers, and RPC support.

### Why package nerds care

libevent is package-nerd-famous because it abstracts the messy portability matrix behind scalable C networking. It is old enough to show up in classic daemons and new enough to have ABI/API reports, split libraries, CMake and autotools history, and long-lived 1.4, 2.0, and 2.1 release lines.

### Timeline

- 2009: Niels Provos announced libevent 1.4.12-stable and libevent 2.0.2-alpha on July 29, 2009.
- 2010: The libevent site lists libevent-1.4.14b-stable released June 7, 2010.
- 2012: The libevent site lists the first 2.1.x alpha release on April 3, 2012 and libevent-2.0.21-stable released November 18, 2012.
- 2014: The libevent site lists libevent-2.0.22-stable released January 5, 2014.
- 2017: The libevent site lists libevent-2.1.8-stable released January 22, 2017.
- 2020: The libevent site lists libevent-2.1.12-stable released July 5, 2020.
- 2023: The libevent site lists libevent-2.2.1-alpha-dev released May 21, 2023.

### Related projects

- Related event-loop and networking projects include libev, libuv, Boost.Asio, and downstream users such as Tor, memcached, tmux, Transmission, Chromium, PgBouncer, and coturn.

### Sources

- <https://github.com/libevent/libevent>
- <https://libevent.org/>
- <https://libevent.org/doc/>
- <https://libevent.org/libevent-book/>
- <https://www.provos.org/p/new-libevent-releases/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

- Debian apt - libevent-2.1-7t64 - 2.1.12-stable-10+b1: normalized package name match | Debian stable package indexes: libevent-2.1-7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous event notification library | https://libevent.org/
- Debian apt - libevent-core-2.1-7t64 - 2.1.12-stable-10+b1: normalized package name match | Debian stable package indexes: libevent-core-2.1-7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous event notification library (core) | https://libevent.org/
- Debian apt - libevent-dev - 2.1.12-stable-10+b1: normalized package name match | Debian stable package indexes: libevent-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous event notification library (development files) | https://libevent.org/
- Debian apt - libevent-extra-2.1-7t64 - 2.1.12-stable-10+b1: normalized package name match | Debian stable package indexes: libevent-extra-2.1-7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous event notification library (extra) | https://libevent.org/
- Debian apt - libevent-openssl-2.1-7t64 - 2.1.12-stable-10+b1: normalized package name match | Debian stable package indexes: libevent-openssl-2.1-7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous event notification library (openssl) | https://libevent.org/
- Debian apt - libevent-pthreads-2.1-7t64 - 2.1.12-stable-10+b1: normalized package name match | Debian stable package indexes: libevent-pthreads-2.1-7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Asynchronous event notification library (pthreads) | https://libevent.org/
- Nix - libevent: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libevent/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libevent-2.1-7t64 - 2.1.12-stable-9ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libevent-2.1-7t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Asynchronous event notification library | https://libevent.org/
- Ubuntu apt - libevent-core-2.1-7t64 - 2.1.12-stable-9ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libevent-core-2.1-7t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Asynchronous event notification library (core) | https://libevent.org/
- Ubuntu apt - libevent-dev - 2.1.12-stable-9ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libevent-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Asynchronous event notification library (development files) | https://libevent.org/
- Ubuntu apt - libevent-extra-2.1-7t64 - 2.1.12-stable-9ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libevent-extra-2.1-7t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Asynchronous event notification library (extra) | https://libevent.org/
- Ubuntu apt - libevent-openssl-2.1-7t64 - 2.1.12-stable-9ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libevent-openssl-2.1-7t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Asynchronous event notification library (openssl) | https://libevent.org/
- Ubuntu apt - libevent-pthreads-2.1-7t64 - 2.1.12-stable-9ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libevent-pthreads-2.1-7t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Asynchronous event notification library (pthreads) | https://libevent.org/
- apk - libevent - 2.1.12-r9: normalized package name match | Alpine Linux edge package indexes: libevent from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An event notification library | https://libevent.org/
- apk - libevent-dev - 2.1.12-r9: normalized package name match | Alpine Linux edge package indexes: libevent-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An event notification library (development files) | https://libevent.org/
- apk - libevent-static - 2.1.12-r9: normalized package name match | Alpine Linux edge package indexes: libevent-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | An event notification library (static libraries) | https://libevent.org/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer 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.
- [amber](https://www.automicvault.com/pkg/brew/amber/) - Popular package that depends on this formula.
- [bitcoin](https://www.automicvault.com/pkg/brew/bitcoin/) - Popular package that depends on this formula.
- [coturn](https://www.automicvault.com/pkg/brew/coturn/) - Popular package that depends on this formula.
- [crystal-icr](https://www.automicvault.com/pkg/brew/crystal-icr/) - Popular package that depends on this formula.
- [crystalline](https://www.automicvault.com/pkg/brew/crystalline/) - Popular package that depends on this formula.
- [deadfinder](https://www.automicvault.com/pkg/brew/deadfinder/) - Popular package that depends on this formula.
- [dnscrypt-wrapper](https://www.automicvault.com/pkg/brew/dnscrypt-wrapper/) - Popular package that depends on this formula.
- [cdk](https://www.automicvault.com/pkg/brew/cdk/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [expat](https://www.automicvault.com/pkg/brew/expat/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [fstrm](https://www.automicvault.com/pkg/brew/fstrm/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [libxml2](https://www.automicvault.com/pkg/brew/libxml2/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [libxo](https://www.automicvault.com/pkg/brew/libxo/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [libxslt](https://www.automicvault.com/pkg/brew/libxslt/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [onigmo](https://www.automicvault.com/pkg/brew/onigmo/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [poco](https://www.automicvault.com/pkg/brew/poco/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, libraries, network.
- [activemq-cpp](https://www.automicvault.com/pkg/brew/activemq-cpp/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, libraries, openssl.

## Combined YAML source

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