macOS
brew install libeventlocal Homebrew formula metadata
sudo port install libeventMacPorts ports tree · devel/libevent/Portfile · 来源: api.github.com
安装
brew install libeventlocal Homebrew formula metadata
sudo port install libeventMacPorts ports tree · devel/libevent/Portfile · 来源: api.github.com
sudo apk add libeventAlpine Linux edge package indexes · libevent · 来源: dl-cdn.alpinelinux.org
sudo dnf install libeventFedora Rawhide package metadata · libevent · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libeventnixpkgs package indexes · pkgs/by-name/li/libevent/package.nix · 来源: api.github.com
sudo pacman -S libeventArch Linux sync databases · libevent · 来源: geo.mirror.pkgbuild.com
sudo apt install libevent-2.1-7t64Debian stable package indexes · libevent-2.1-7t64 · 来源: deb.debian.org
sudo zypper install libevent-2_1-7openSUSE Tumbleweed package metadata · libevent-2_1-7 · 来源: download.opensuse.org
概览
Asynchronous event library
历史
libevent is a portable C event-notification library for scalable network servers and event-driven programs.
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.
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.
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.
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
event_rpcgen.py | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/libevent/libevent
安装元数据
| 软件包键 | brew:libevent |
|---|---|
| 版本 | 2.1.13 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libevent |
| 主页 | https://libevent.org/ |
| 仓库 | https://github.com/libevent/libevent |
| 上游文档 | https://libevent.org/ |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/libevent/libevent/archive/refs/tags/release-2.1.13-stable.tar.gz |
| 最后更新 | 2026-07-01T17:46:43Z |
| Pulse | updated |
| 依赖 | openssl@3 |
| 构建依赖 | autoconf, automake, libtool, pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libevent-2.1-7t64 2.1.12-stable-10+b1
Asynchronous event notification library
sudo apt install libevent-2.1-7t64libevent-core-2.1-7t64 2.1.12-stable-10+b1
Asynchronous event notification library (core)
sudo apt install libevent-core-2.1-7t64libevent-dev 2.1.12-stable-10+b1
Asynchronous event notification library (development files)
sudo apt install libevent-devlibevent-extra-2.1-7t64 2.1.12-stable-10+b1
Asynchronous event notification library (extra)
sudo apt install libevent-extra-2.1-7t64libevent-openssl-2.1-7t64 2.1.12-stable-10+b1
Asynchronous event notification library (openssl)
sudo apt install libevent-openssl-2.1-7t64libevent-pthreads-2.1-7t64 2.1.12-stable-10+b1
Asynchronous event notification library (pthreads)
sudo apt install libevent-pthreads-2.1-7t64libevent
nix profile install nixpkgs#libeventlibevent-2.1-7t64 2.1.12-stable-9ubuntu2
Asynchronous event notification library
sudo apt install libevent-2.1-7t64libevent-core-2.1-7t64 2.1.12-stable-9ubuntu2
Asynchronous event notification library (core)
sudo apt install libevent-core-2.1-7t64libevent-dev 2.1.12-stable-9ubuntu2
Asynchronous event notification library (development files)
sudo apt install libevent-devlibevent-extra-2.1-7t64 2.1.12-stable-9ubuntu2
Asynchronous event notification library (extra)
sudo apt install libevent-extra-2.1-7t64libevent-openssl-2.1-7t64 2.1.12-stable-9ubuntu2
Asynchronous event notification library (openssl)
sudo apt install libevent-openssl-2.1-7t64libevent-pthreads-2.1-7t64 2.1.12-stable-9ubuntu2
Asynchronous event notification library (pthreads)
sudo apt install libevent-pthreads-2.1-7t64libevent 2.1.12-r9
An event notification library
sudo apk add libeventlibevent-dev 2.1.12-r9
An event notification library (development files)
sudo apk add libevent-devlibevent-static 2.1.12-r9
An event notification library (static libraries)
sudo apk add libevent-static来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.