# 使用 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
- **版本:** 2.4.2
- **来源摘要:** Knowledgebase of Interatomic Models (KIM) API
- **主页:** <https://openkim.org>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.4.2
## 项目历史与用法

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
