Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 c-ares

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install c-ares

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install c-ares

MacPorts ports tree · net/c-ares/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add c-ares

Alpine Linux edge package indexes · c-ares · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install c-ares

Fedora Rawhide package metadata · c-ares · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#c-ares

nixpkgs package indexes · pkgs/by-name/c-/c-ares/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S c-ares

Arch Linux sync databases · c-ares · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libc-ares-dev

Debian stable package indexes · libc-ares-dev · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install c-ares-devel

openSUSE Tumbleweed package metadata · c-ares-devel · 来源: download.opensuse.org

概览

软件包摘要

Asynchronous DNS library

命令和别名

  • adig
  • ahost

历史

项目历史与用法

c-ares is an MIT-licensed C library for asynchronous DNS resolution. It grew out of Daniel Stenberg's search for a non-blocking resolver suitable for libcurl and became a long-lived dependency for network software that cannot afford blocking name lookups.

项目历史

The official `why` page explains that Daniel Stenberg looked for an asynchronous DNS resolver for libcurl, found the older ares library, began expanding it, and forked when the original author would not accept the needed changes. That fork became c-ares.

The project still acknowledges ares as the public API influence while noting that the code no longer closely resembles the original. Its README now describes c-ares as a modern DNS stub resolver written in C with asynchronous interfaces, portability across Unix, Windows, mobile, and other systems, and active maintenance after more than 20 years.

Recent project materials emphasize security practice as much as asynchronous lookup: safe parsers and builders, static and dynamic analysis, OSS-Fuzz coverage, signed releases, and SLSA provenance for release artifacts.

采用历史

c-ares adoption started from libcurl's need for DNS lookups that could integrate with event-driven network code. From there it spread into software that needs many DNS queries in parallel or wants resolver behavior independent from a platform's blocking libc calls.

Its package-manager footprint is broad: Homebrew, Debian and Ubuntu development packages, Fedora, Alpine, Arch, MacPorts, Nix, and openSUSE all package it. That breadth reflects its status as a library dependency more than an end-user command, although tools such as `adig` and `ahost` are installed with some packages.

使用方式

Developers link against c-ares to issue asynchronous DNS queries through non-blocking sockets and integrate DNS work into event loops. The official docs include initialization APIs such as `ares_init_options` and resolver configuration behavior.

On Unix-like systems c-ares reads resolver environment from standard system files such as `/etc/resolv.conf` and `/etc/hosts`, matching the package's curated config-file locations.

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

c-ares is one of those packages users may never invoke directly but build systems constantly care about. It is a small C library whose ABI, headers, pkg-config metadata, and security updates affect curl-like networking stacks across distributions.

For package nerds, it is also a clean example of a library fork becoming infrastructure: born from a specific libcurl need, preserved for API/ABI stability, and now maintained with modern supply-chain signals such as signed releases and SLSA provenance.

时间线

  • Early 2000s: Daniel Stenberg searches for an asynchronous DNS resolver for libcurl and forks from ares to create c-ares.
  • 2004: Early tags such as `c-ares-1_2_0` appear in the upstream repository history.
  • 2010s: c-ares remains a common packaged dependency for asynchronous DNS in C networking software.
  • 2024: The project site describes more than 20 years of active maintenance and modern DNS RFC support.
  • 2025: The official site publishes c-ares 1.34.6 as a signed release with release provenance.

Related projects

  • libcurl is the motivating user described by the official history page.
  • ares is the older resolver library from which c-ares forked.
  • ADNS, UDNS, FireDNS, Mozilla netlib, djbdns, and other resolver libraries are discussed by the c-ares project as alternatives or contemporaries.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:sync

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
/etc/resolv.conf/etc/hosts

可执行文件

已安装的可执行文件

命令类型暴露范围备注
adigcli全局可执行文件
ahostcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.34.8
管理器更新时间2026-07-08
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/c-ares/c-ares

安装元数据

软件包元数据

软件包键brew:c-ares
版本1.34.8
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/c-ares
主页https://c-ares.org/
仓库https://github.com/c-ares/c-ares
上游文档https://c-ares.org/docs.html
许可证MIT
源码归档https://github.com/c-ares/c-ares/releases/download/v1.34.8/c-ares-1.34.8.tar.gz
最后更新2026-07-08T02:31:43Z
Pulseupdated
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namec-ares
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libc-ares-dev 1.34.5-1+deb13u1

asynchronous name resolver - development files

https://c-ares.org/

sudo apt install libc-ares-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: c-ares
  • 1 依赖
  • normalized package name match
  • 匹配方式:C Ares
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc-ares-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libc-ares2 1.34.5-1+deb13u1

transitional package

https://c-ares.org/

sudo apt install libc-ares2
  • Section: oldlibs
  • Architecture: all
  • Source Package: c-ares
  • 1 依赖
  • normalized package name match
  • 匹配方式:C Ares
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc-ares2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcares2 1.34.5-1+deb13u1

asynchronous name resolver

https://c-ares.org/

sudo apt install libcares2
  • Section: libs
  • Architecture: amd64
  • Source Package: c-ares
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcares2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

c-ares

nix profile install nixpkgs#c-ares
  • normalized package name match
  • 匹配方式:C Ares
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/c-/c-ares/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libc-ares-dev 1.27.0-1.0ubuntu1

asynchronous name resolver - development files

https://c-ares.org/

sudo apt install libc-ares-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: c-ares
  • 1 依赖
  • normalized package name match
  • 匹配方式:C Ares
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libc-ares-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libcares2 1.27.0-1.0ubuntu1

asynchronous name resolver

https://c-ares.org/

sudo apt install libcares2
  • Section: libs
  • Architecture: amd64
  • Source Package: c-ares
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcares2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

c-ares 1.34.6-r0

Asynchronous DNS/names resolver library

https://c-ares.org/

sudo apk add c-ares
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

c-ares-dev 1.34.6-r0

Asynchronous DNS/names resolver library (development files)

https://c-ares.org/

sudo apk add c-ares-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

c-ares-doc 1.34.6-r0

Asynchronous DNS/names resolver library (documentation)

https://c-ares.org/

sudo apk add c-ares-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • normalized package name match
  • 匹配方式:C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

c-ares-utils 1.34.6-r0

Asynchronous DNS/names resolver library

https://c-ares.org/

sudo apk add c-ares-utils
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

c-ares 1.34.6-3.fc44

A library that performs asynchronous DNS operations

http://c-ares.org/

sudo dnf install c-ares
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: c-ares
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:C Ares
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: c-ares from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

c-ares-devel 1.34.6-3.fc44

Development files for c-ares

http://c-ares.org/

sudo dnf install c-ares-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: c-ares
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:C Ares
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: c-ares-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

c-ares 1.34.6-1

A C library for asynchronous DNS requests

https://c-ares.org/

sudo pacman -S c-ares
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: c-ares from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

c-ares-devel 1.34.6-1.3

Development files for c-ares

https://c-ares.org/

sudo zypper install c-ares-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: c-ares
  • 3 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:C Ares
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: c-ares-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

c-ares-utils 1.34.6-1.3

Tools for asynchronous name resolves

https://c-ares.org/

sudo zypper install c-ares-utils
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: c-ares
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:C Ares
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: c-ares-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libcares2 1.34.6-1.3

Library for asynchronous name resolves

https://c-ares.org/

sudo zypper install libcares2
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: c-ares
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:C Ares
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libcares2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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