# 使用 Homebrew, apt, dnf, MacPorts 安装 libdap

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

## 安装

```sh
sudo av install brew:libdap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libdap
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libdap
```

  证据: MacPorts ports tree: science/libdap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libdap-bin
```

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

- dnf (92%):

```sh
sudo dnf install libdap
```

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

## 软件包事实

- **软件包键:** brew:libdap
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libdap>
- **版本:** 3.21.1
- **来源摘要:** Framework for scientific data networking
- **主页:** <https://www.opendap.org/>
- **仓库:** <https://github.com/OPENDAP/libdap4>
- **上游文档:** <https://docs.opendap.org/index.php/Libdap>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://www.opendap.org/pub/source/libdap-3.21.1.tar.gz>
- **最后更新:** 2026-06-07T14:59:57-04:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- dap-config (cli)
- dap-config-pkgconfig (cli)
- getdap (cli)
- getdap4 (cli)
- dap-config (别名)
- dap-config-pkgconfig (别名)
- getdap (别名)
- getdap4 (别名)

## 依赖

- libxml2
- openssl@3

## 构建依赖

- bison
- pkgconf

## macOS 提供的库

- curl

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.21.1
- 管理器更新时间: 2026-06-07
- 本地数据: OK
- 上游仓库: https://www.opendap.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libdap is OPeNDAP's C++ implementation of the Data Access Protocol family, carrying the DAP2 heritage forward while adding DAP4 support. In package-manager terms it is the client and server library substrate behind tools such as getdap and getdap4 rather than an end-user science application by itself.

### 项目历史

OPeNDAP grew out of the Distributed Oceanographic Data System work in the ocean-science community, with OPeNDAP Inc. formed in 2000 to maintain and evolve the protocol and software. The library history reflects that migration from older DODS/libdap++ organization into a standalone libdap module and then the libdap4 repository for DAP2 and DAP4 support.

The 2005 libdap 3.5.0 beta release notes describe the old DODS CVS module being split into a new libdap module, new install paths, renamed utilities getdap and dap-config, and early DDX work aimed at later DAP protocol evolution. Later libdap4 release notes record C++11 migration, DAP4 API work, large-array handling, direct I/O support, and the getdap4 command-line client.

### 采用历史

DAP2 was approved as a NASA Earth Science Data Systems standard in 2005, and OPeNDAP describes later adoption across servers, web applications, MATLAB, Ferret, PyFerret, PyDAP, and other scientific-data tools. OPeNDAP's releases page also notes libdap's use by the Hyrax server and inclusion in Linux distributions such as EPEL.

The library matters most in earth-science and distributed-data stacks where HTTP-accessible array datasets need subsetting without downloading full files. It is part of the infrastructure lineage that also intersects with Hyrax, BES, OLFS, netCDF-oriented workflows, PyDAP, and DAP4 documentation.

### 使用方式

Package users usually encounter libdap through linked scientific applications, server components, dap-config, or the getdap/getdap4 command-line clients. Its ~/.dodsrc configuration and ~/.netrc credential support are package-nerd clues that the library also participates in authenticated remote data access workflows.

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

libdap is a classic scientific Unix library package: protocol implementation, C++ ABI concerns, autotools/CMake build history, command-line probes, and downstream distribution packaging all meet in one formula. It is significant less for UI visibility than for enabling remote scientific data access across many consumers.

### 时间线

- 2000: OPeNDAP Inc. was formed to maintain and evolve the DODS data-access protocol.
- 2005: DAP2 was approved as a NASA Earth Science Data Systems standard.
- 2005: libdap 3.5.0 beta split the old DODS CVS layout into a standalone libdap module and renamed utilities such as getdap and dap-config.
- 2014: OPeNDAP history describes DAP4 release work under the OPULS program.
- 2022: libdap 3.20.x releases continued DAP4 API, RHEL, C++11, and Hyrax support work.
- 2025: libdap4 API documentation was generated for version 3.21.1.

### Related projects

- Hyrax, BES, and OLFS are closely related OPeNDAP server-side projects. PyDAP, Ferret, PyFerret, MATLAB OPeNDAP support, netCDF-oriented clients, and DAP2/DAP4 specifications are adjacent parts of the same scientific-data ecosystem.

### 来源

- <https://github.com/OPENDAP/libdap4>
- <https://opendap.github.io/libdap4/html/>
- <https://raw.githubusercontent.com/OPENDAP/libdap4/master/NEWS>
- <https://raw.githubusercontent.com/OPENDAP/libdap4/master/README.md>
- <https://www.opendap.org/about/history/>
- <https://www.opendap.org/software/releases/>


## 安全说明

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: ~/.dodsrc

## Credential files

- Unix: ~/.netrc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libdap
- **Version Scheme:** 0
- **Revision:** 1
- **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 - libdap-bin - 3.21.1-2: normalized package name match | Debian stable package indexes: libdap-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Binaries for the libdap Data Access Protocol library | https://www.opendap.org/
- Debian apt - libdap-dev - 3.21.1-2: normalized package name match | Debian stable package indexes: libdap-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files (headers and static libraries) for libdap | https://www.opendap.org/
- Debian apt - libdap-doc - 3.21.1-2: normalized package name match | Debian stable package indexes: libdap-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for the libdap Data Access Protocol library | https://www.opendap.org/
- Debian apt - libdap27t64 - 3.21.1-2: normalized package name match | Debian stable package indexes: libdap27t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open-source Project for a Network Data Access Protocol library | https://www.opendap.org/
- Debian apt - libdapclient6t64 - 3.21.1-2: normalized package name match | Debian stable package indexes: libdapclient6t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Client library for the Network Data Access Protocol | https://www.opendap.org/
- Debian apt - libdapserver7t64 - 3.21.1-2: normalized package name match | Debian stable package indexes: libdapserver7t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Server library for the Network Data Access Protocol | https://www.opendap.org/
- Ubuntu apt - libdap-bin - 3.21.0-1.1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libdap-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Binaries for the libdap Data Access Protocol library | https://www.opendap.org/
- Ubuntu apt - libdap-dev - 3.21.0-1.1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libdap-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files (headers and static libraries) for libdap | https://www.opendap.org/
- Ubuntu apt - libdap-doc - 3.21.0-1.1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libdap-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for the libdap Data Access Protocol library | https://www.opendap.org/
- Ubuntu apt - libdap27t64 - 3.21.0-1.1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libdap27t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open-source Project for a Network Data Access Protocol library | https://www.opendap.org/
- Ubuntu apt - libdapclient6t64 - 3.21.0-1.1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libdapclient6t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Client library for the Network Data Access Protocol | https://www.opendap.org/
- Ubuntu apt - libdapserver7t64 - 3.21.0-1.1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libdapserver7t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Server library for the Network Data Access Protocol | https://www.opendap.org/
- dnf - libdap - 3.21.1-2.fc44: normalized package name match | Fedora Rawhide package metadata: libdap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The C++ DAP2 and DAP4 library from OPeNDAP | http://www.opendap.org/
- dnf - libdap-devel - 3.21.1-2.fc44: normalized package name match | Fedora Rawhide package metadata: libdap-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development and header files from libdap | http://www.opendap.org/
- dnf - libdap-doc - 3.21.1-2.fc44: normalized package name match | Fedora Rawhide package metadata: libdap-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation of the libdap library | http://www.opendap.org/
- MacPorts - libdap: normalized package name match | MacPorts ports tree: science/libdap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/zh-hans/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [libxml2](https://www.automicvault.com/zh-hans/pkg/brew/libxml2/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [bison](https://www.automicvault.com/zh-hans/pkg/brew/bison/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [clhep](https://www.automicvault.com/zh-hans/pkg/brew/clhep/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [geos](https://www.automicvault.com/zh-hans/pkg/brew/geos/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [ginac](https://www.automicvault.com/zh-hans/pkg/brew/ginac/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [kim-api](https://www.automicvault.com/zh-hans/pkg/brew/kim-api/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [pnetcdf](https://www.automicvault.com/zh-hans/pkg/brew/pnetcdf/) - Shares av.db curated category or tags: cli, library, science, scientific-data.
- [quantlib](https://www.automicvault.com/zh-hans/pkg/brew/quantlib/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [sfcgal](https://www.automicvault.com/zh-hans/pkg/brew/sfcgal/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [voro++](https://www.automicvault.com/zh-hans/pkg/brew/voro/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [root](https://www.automicvault.com/zh-hans/pkg/brew/root/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, config, data, openssl.
- [dcmtk](https://www.automicvault.com/zh-hans/pkg/brew/dcmtk/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, openssl, openssl-3, plus.

## Combined YAML source

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