# 使用 Homebrew, apk, apt, Nix, pacman, zypper 安装 drogon

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

## 安装

```sh
sudo av install brew:drogon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install drogon
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add drogon
```

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

- Debian apt (92%):

```sh
sudo apt install drogon
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#drogon
```

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

- pacman (92%):

```sh
sudo pacman -S benchmark
```

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

- zypper (92%):

```sh
sudo zypper install benchmark-devel
```

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

## 软件包事实

- **软件包键:** brew:drogon
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/drogon>
- **版本:** 1.9.13
- **来源摘要:** Modern C++ web application framework
- **主页:** <https://drogon.org>
- **仓库:** <https://github.com/drogonframework/drogon>
- **上游文档:** <https://drogon.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/drogonframework/drogon.git>
- **最后更新:** 2026-06-22T14:03:11-07:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- _drogon_ctl (cli)
- async_stream (cli)
- benchmark (cli)
- client (cli)
- cors (cli)
- dg_ctl (cli)
- drogon_ctl (cli)
- file_upload (cli)
- helloworld (cli)
- jsonstore (cli)
- login_session (cli)
- redis_chat (cli)
- redis_simple (cli)
- websocket_client (cli)
- websocket_server (cli)
- _drogon_ctl (别名)
- async_stream (别名)
- benchmark (别名)
- client (别名)
- cors (别名)
- dg_ctl (别名)
- drogon_ctl (别名)
- file_upload (别名)
- helloworld (别名)
- jsonstore (别名)
- login_session (别名)
- redis_chat (别名)
- redis_simple (别名)
- websocket_client (别名)
- websocket_server (别名)

## 依赖

- brotli
- c-ares
- jsoncpp
- openssl@3

## 构建依赖

- cmake

## macOS 提供的库

- sqlite

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.9.13
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/drogonframework/drogon
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Drogon is a modern C++ HTTP application framework with asynchronous networking, routing, controllers, views, WebSocket support, database clients, Redis support, plugins, ORM tooling, and the drogon_ctl code-generation CLI.

### 项目历史

The public drogonframework/drogon repository was created in April 2018. The official overview presents Drogon as a C++17/20-based framework for building web application server programs, with its name borrowed from a dragon in Game of Thrones.

Drogon grew around a performance-oriented, asynchronous C++ server model. Its README emphasizes non-blocking I/O using epoll and kqueue, a fully asynchronous programming style, HTTP client and server support, templates, controllers, filters, WebSocket, JSON responses, uploads, compression, pipelining, database access, Redis access, plugins, AOP joinpoints, and C++ coroutine support.

The project also includes the trantor networking library as a built-in dependency in the installation docs, making the framework feel closer to a self-contained C++ web stack than a thin wrapper around an external server. The drogon_ctl command became part of the package identity because it generates controllers, views, and scaffolding that would otherwise be repetitive in C++.

### 采用历史

Drogon's adoption is visible through its packaging and community surfaces: Homebrew packages the stable release, the README advertises Conan Center, Docker images, Telegram and Discord communities, and official docs cover Linux, macOS, FreeBSD, and Windows-style installation paths.

It also became a familiar name among C++ web-framework benchmark watchers because the README points users to TechEmpower Framework Benchmarks for high-concurrency performance comparisons. That benchmark visibility matters for C++ developers evaluating whether an installable framework can compete with leaner HTTP stacks.

### 使用方式

A minimal Drogon app can listen, set logging, configure thread count, optionally daemonize, and run from main. The README also shows loading config.json via app().loadConfigFile and using drogon_ctl to generate controllers, while docs describe dependencies such as jsoncpp, libuuid, zlib, OpenSSL, c-ares, brotli, PostgreSQL, MariaDB, sqlite3, hiredis, gtest, and yaml-cpp.

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

Drogon is package-nerd catnip because it makes a usually bespoke C++ web-server stack installable as a framework plus CLI. A package install brings headers, libraries, sample executables, drogon_ctl, optional database and compression integrations, and a config-file culture familiar to web developers but less common in high-performance C++ packages.

Its cross-platform story is also unusually broad for a C++ web framework: the README lists Linux, macOS, FreeBSD, OpenBSD, HaikuOS, and Windows, while Homebrew bottles current builds for macOS and Linux architectures. That makes it useful both as an application framework and as a packaging test case for C++ dependency edges.

### 时间线

- 2018: Public drogonframework/drogon repository created.
- 2019: v1.0.0-era tags establish the first stable release line.
- 2020: v1.1.0 and later 1.x releases expand the stable release train.
- 2026: Homebrew packages Drogon 1.9.13 as a current stable release.

### Related projects

- Trantor is Drogon's built-in non-blocking I/O network library dependency.
- drogon_ctl is the companion CLI used to create controllers and generate view code.
- Conan Center and Docker are official distribution-adjacent surfaces advertised by the repository.
- TechEmpower Framework Benchmarks are referenced by the official README as a performance comparison surface.

### 来源

- <https://github.com/drogonframework/drogon>
- <https://raw.githubusercontent.com/drogonframework/drogon/master/README.md>
- <https://drogonframework.github.io/drogon-docs/>
- <https://drogonframework.github.io/drogon-docs/ENG/ENG-01-Overview.md>
- <https://drogonframework.github.io/drogon-docs/ENG/ENG-02-Installation.md>
- <https://formulae.brew.sh/formula/drogon>
- <https://formulae.brew.sh/api/formula/drogon.json>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: config.json, models/model.json
- Windows: config.json, models\model.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** drogon
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - drogon - 1.9.0+ds-1+b1: normalized package name match | Debian stable package indexes: drogon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++14/17-based HTTP application framework | https://github.com/drogonframework/drogon
- Debian apt - libdrogon-dev - 1.9.0+ds-1+b1: normalized package name match | Debian stable package indexes: libdrogon-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++14/17-based HTTP application framework development files | https://github.com/drogonframework/drogon
- Debian apt - libdrogon1t64 - 1.9.0+ds-1+b1: normalized package name match | Debian stable package indexes: libdrogon1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++14/17-based HTTP application framework library files | https://github.com/drogonframework/drogon
- Nix - drogon: normalized package name match | nixpkgs package indexes: pkgs/by-name/dr/drogon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - drogon - 1.8.7+ds-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: drogon from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++14/17-based HTTP application framework | https://github.com/drogonframework/drogon
- Ubuntu apt - libdrogon-dev - 1.8.7+ds-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libdrogon-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++14/17-based HTTP application framework | https://github.com/drogonframework/drogon
- Ubuntu apt - libdrogon1t64 - 1.8.7+ds-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libdrogon1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++14/17-based HTTP application framework | https://github.com/drogonframework/drogon
- apk - drogon - 1.9.4-r3: normalized package name match | Alpine Linux edge package indexes: drogon from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A C++14/17/20 based HTTP web application framework | https://github.com/drogonframework/drogon
- apk - drogon-dev - 1.9.4-r3: normalized package name match | Alpine Linux edge package indexes: drogon-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A C++14/17/20 based HTTP web application framework (development files) | https://github.com/drogonframework/drogon
- apk - drogon-doc - 1.9.4-r3: normalized package name match | Alpine Linux edge package indexes: drogon-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A C++14/17/20 based HTTP web application framework (documentation) | https://github.com/drogonframework/drogon
- Debian apt - libbenchmark-dev - 1.9.1-1: installed executable or alias match | Debian stable package indexes: libbenchmark-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microbenchmark support library, development files | https://github.com/google/benchmark
- Debian apt - libbenchmark-tools - 1.9.1-1: installed executable or alias match | Debian stable package indexes: libbenchmark-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microbenchmark support library, tools and documentation | https://github.com/google/benchmark
- Debian apt - libbenchmark1.9.1 - 1.9.1-1: installed executable or alias match | Debian stable package indexes: libbenchmark1.9.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microbenchmark support library, shared library | https://github.com/google/benchmark
- Debian apt - python3-websocket - 1.8.0-2: installed executable or alias match | Debian stable package indexes: python3-websocket from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | WebSocket client library - Python 3.x | https://github.com/liris/websocket-client
- Ubuntu apt - libbenchmark-dev - 1.8.3-3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libbenchmark-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microbenchmark support library, development files | https://github.com/google/benchmark
- Ubuntu apt - libbenchmark-tools - 1.8.3-3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libbenchmark-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microbenchmark support library, tools and documentation | https://github.com/google/benchmark


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched web development metadata.
- [brotli](https://www.automicvault.com/zh-hans/pkg/brew/brotli/) - Runtime dependency declared by Homebrew.
- [c-ares](https://www.automicvault.com/zh-hans/pkg/brew/c-ares/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [curl](https://www.automicvault.com/zh-hans/pkg/brew/curl/) - Local metadata places this package in an adjacent workflow. Shared terms: brotli, client, file, openssl, openssl-3.
- [mavsdk](https://www.automicvault.com/zh-hans/pkg/brew/mavsdk/) - Local metadata places this package in an adjacent workflow. Shared terms: ares, c-ares, jsoncpp, openssl, openssl-3.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Local metadata places this package in an adjacent workflow. Shared terms: ares, brotli, c-ares, openssl, openssl-3.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
