# 使用 Homebrew, zypper, apt 安装 kim-api

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

## 安装

```sh
sudo av install brew:kim-api
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kim-api
```

  证据: local Homebrew formula metadata

### Linux

- zypper (92%):

```sh
sudo zypper install kim-api
```

  证据: openSUSE Tumbleweed package metadata: kim-api from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install libkim-api-dev
```

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

## 软件包事实

- **软件包键:** brew:kim-api
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kim-api>
- **版本:** 2.4.2
- **来源摘要:** Knowledgebase of Interatomic Models (KIM) API
- **主页:** <https://openkim.org>
- **上游文档:** <https://openkim.org>
- **许可证:** CDDL-1.0
- **源码归档:** <https://s3.openkim.org/kim-api/kim-api-2.4.2.txz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- kim-api-activate (cli)
- kim-api-collections-management (cli)
- kim-api-deactivate (cli)
- kim-api-activate (别名)
- kim-api-collections-management (别名)
- kim-api-deactivate (别名)

## 依赖

- gcc

## 构建依赖

- cmake
- doxygen

## macOS 提供的库

- xz

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.4.2
- 本地数据: OK
- 上游仓库: https://openkim.org
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

KIM API is the system-level library for the Open Knowledgebase of Interatomic Models. It defines the Portable Model Interface used by atomistic and molecular simulation codes to call interatomic models across C, C++, Fortran, and related language boundaries.

### 项目历史

The project grew out of OpenKIM's goal of making interatomic potentials portable, testable, and citable instead of being locked inside one simulator's input format or source tree. The API documentation describes KIM API as the formal specification and implementation layer that lets one Portable Model be used without modification by multiple simulators.

The 2.x line was a major modernization. OpenKIM's revision history records kim-api-v2-2.0.0 on 2019-02-06, followed by the transition back to the plain kim-api package name in 2.0.2 on 2019-03-28. Later releases added performance improvements, collection-management refinements, Windows support, relocatable installs, and CMake changes for KIM API items.

### 采用历史

OpenKIM documents KIM API support across major atomistic simulation tools and workflows, including LAMMPS, ASE, GULP, DL_POLY, ASAP, KLIFF, and related materials-science software. That ecosystem role matters more than raw command-line popularity: KIM API is glue that lets potentials travel between simulators.

The package-manager metadata for this batch lists Homebrew, Debian, Ubuntu, and openSUSE packages. That packaging footprint fits its role as a shared scientific library rather than a single end-user application.

### 使用方式

Users install KIM API so simulators can load KIM Portable Models, Simulator Models, and model drivers from OpenKIM collections. The bundled command-line utilities such as kim-api-collections-management manage model collections, while the library and headers are consumed by simulator builds and model packages.

KIM API is mostly invisible in day-to-day simulations once installed correctly: researchers interact with simulator-specific commands, but the API standardizes the boundary where the simulator asks an interatomic model for energies, forces, neighbor lists, species, units, and metadata.

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

For package nerds, kim-api is a good example of a domain-specific ABI/API standard that package managers have to treat like shared infrastructure. It is not just another numerical library; its versioning affects separately packaged models, simulator integrations, CMake metadata, and scientific reproducibility.

It also shows why scientific package histories often matter: a KIM-compatible model can be cited and reused across codes only if the library, model collections, and simulator support remain installable together.

### 时间线

- 2017: KIM API 1.9.0 added the collections-management utility for installing and removing KIM models.
- 2019: kim-api-v2-2.0.0 was released on 2019-02-06.
- 2019: LAMMPS gained full KIM API v2 support as of 2019-02-28 according to OpenKIM's software-using-KIM page.
- 2020: KIM API 2.2.0 added Windows support and relocatable installs.
- 2026: KIM API 2.4.2 was released on 2026-03-06.

### Related projects

- OpenKIM is the repository and curation project around the API.
- LAMMPS, ASE, GULP, DL_POLY, ASAP, and KLIFF are notable software projects documented by OpenKIM as using KIM API or KIM models.
- KIM Portable Models, Model Drivers, and Simulator Models are the package types that the API is designed to make portable.

### 来源

- <https://github.com/openkim/kim-api>
- <https://kim-api.readthedocs.io/en/latest/>
- <https://openkim.org/kim-api/kim-api-revision-history/>
- <https://openkim.org/kim-api/previous-versions/>
- <https://openkim.org/projects-using-kim/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - libkim-api-dev - 2.3.0-1+b2: normalized package name match | Debian stable package indexes: libkim-api-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for KIM-API | https://openkim.org
- Debian apt - libkim-api-doc - 2.3.0-1: normalized package name match | Debian stable package indexes: libkim-api-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation and examples for KIM-API | https://openkim.org
- Debian apt - libkim-api2 - 2.3.0-1+b2: normalized package name match | Debian stable package indexes: libkim-api2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Shared library for KIM-API | https://openkim.org
- Ubuntu apt - libkim-api-dev - 2.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkim-api-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for KIM-API | https://openkim.org
- Ubuntu apt - libkim-api-doc - 2.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkim-api-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation and examples for KIM-API | https://openkim.org
- Ubuntu apt - libkim-api2 - 2.3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkim-api2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Shared library for KIM-API | https://openkim.org
- zypper - kim-api - 2.3.0-2.9: normalized package name match | openSUSE Tumbleweed package metadata: kim-api from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Open Knowledgebase of Interatomic Models KIM API | https://openkim.org
- zypper - kim-api-devel - 2.3.0-2.9: normalized package name match | openSUSE Tumbleweed package metadata: kim-api-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development headers and libraries for kim-api | https://openkim.org
- zypper - kim-api-examples - 2.3.0-2.9: normalized package name match | openSUSE Tumbleweed package metadata: kim-api-examples from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Example models for kim-api | https://openkim.org
- zypper - libkim-api2 - 2.3.0-2.9: normalized package name match | openSUSE Tumbleweed package metadata: libkim-api2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The kim-api library | https://openkim.org


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://pkg.so/zh-hans/scientific-computing-tools/) - Matched scientific computing metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [gcc](https://pkg.so/zh-hans/brew/gcc/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [doxygen](https://pkg.so/zh-hans/brew/doxygen/) - Build dependency declared by Homebrew.
- [lammps](https://pkg.so/zh-hans/brew/lammps/) - Popular package that depends on this formula.
- [geos](https://pkg.so/zh-hans/brew/geos/) - Shares pkgdb curated category or tags: c-plus-plus, cli, library, science.
- [sfcgal](https://pkg.so/zh-hans/brew/sfcgal/) - Shares pkgdb curated category or tags: c-plus-plus, cli, library, science.
- [libdap](https://pkg.so/zh-hans/brew/libdap/) - Shares pkgdb curated category or tags: c-plus-plus, cli, library, science.
- [nwchem](https://pkg.so/zh-hans/brew/nwchem/) - Shares pkgdb curated category or tags: cli, fortran, molecular-simulation, science.
- [cp2k](https://pkg.so/zh-hans/brew/cp2k/) - Shares pkgdb curated category or tags: cli, molecular-simulation, science.
- [quantlib](https://pkg.so/zh-hans/brew/quantlib/) - Shares pkgdb curated category or tags: c-plus-plus, cli, library, science.
- [ginac](https://pkg.so/zh-hans/brew/ginac/) - Shares pkgdb curated category or tags: c-plus-plus, cli, library, science.
- [votca](https://pkg.so/zh-hans/brew/votca/) - Shares pkgdb curated category or tags: c-plus-plus, cli, molecular-simulation, science.

## Combined YAML source

View the package source record on GitHub. [combined/kim-api.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kim-api.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
