# 使用 Homebrew Cask 安装 kotlin-native

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

## 安装

```sh
sudo av install cask:kotlin-native
```

其他安装命令:

### macOS

- Homebrew Cask (100%):

```sh
brew install --cask kotlin-native
```

  证据: local Homebrew cask metadata

## 软件包事实

- **软件包键:** cask:kotlin-native
- **软件包管理器:** Homebrew Cask
- **软件包管理器页面:** <https://formulae.brew.sh/cask/kotlin-native>
- **版本:** 2.4.10
- **来源摘要:** LLVM backend for Kotlin
- **主页:** <https://kotlinlang.org/docs/reference/native-overview.html>
- **仓库:** <https://github.com/JetBrains/kotlin>
- **上游文档:** <https://kotlinlang.org/docs/reference/native-overview.html>
- **源码归档:** <https://github.com/JetBrains/kotlin/releases/download/v2.4.10/kotlin-native-prebuilt-macos-aarch64-2.4.10.tar.gz>
- **最后更新:** 2026-07-14T10:52:55Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cinterop (二进制)
- generate-platform (二进制)
- klib (二进制)
- konan-lldb (二进制)
- konanc (二进制)
- kotlinc-native (二进制)
- run_konan (二进制)
- cinterop (别名)
- generate-platform (别名)
- klib (别名)
- konan-lldb (别名)
- konanc (别名)
- kotlinc-native (别名)
- run_konan (别名)

## 安装行为

- post-install 钩子: 未定义
- 注意事项: kotlin-native requires Java 6+. You can install the latest version with: brew install --cask temurin
- Bottle: 不可用

## 版本和新鲜度

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

Kotlin/Native is the Kotlin compiler backend and runtime path for producing native binaries without a virtual machine. It uses LLVM and a native Kotlin standard-library implementation, and it made Kotlin a practical language for iOS, desktop, command-line, embedded-style, and other non-JVM targets.

### 项目历史

JetBrains announced the first Kotlin/Native Technology Preview in April 2017 as 'Kotlin without a VM.' The technology preview compiled Kotlin directly to machine code and produced standalone executables, extending Kotlin beyond its early JVM and JavaScript focus.

Kotlin/Native became a central piece of Kotlin Multiplatform. Kotlin 1.3, released in October 2018, brought Kotlin/Native Beta and expanded multiplatform capabilities so that shared business logic could cover Android and iOS applications as well as server, web, and mobile clients.

The Kotlin 1.9.20 release in November 2023 continued the Kotlin/Native maturation story with native runtime work such as a custom memory allocator enabled by default and garbage-collector performance improvements, while Kotlin Multiplatform was declared stable in the same release cycle.

### 采用历史

Kotlin/Native adoption followed Kotlin Multiplatform adoption rather than standalone CLI usage alone. Mobile teams used it to share Kotlin code with iOS, while package managers such as Homebrew Cask exposed the command-line toolchain directly through executables including `konanc`, `kotlinc-native`, `cinterop`, and `klib`.

Its importance grew as Kotlin moved from a JVM-first language into a cross-platform language family. Kotlin 2.0 in May 2024 made the K2 compiler stable across JVM, Native, Wasm, and JS, reinforcing Native as a first-class target in the compiler architecture.

### 使用方式

The package provides native compilation and interop tools. Typical package-manager usage is installing the prebuilt toolchain, then using `kotlinc-native` or `konanc` to produce platform-native artifacts and `cinterop` or `klib` to work with native libraries and Kotlin/Native library packages.

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

Kotlin/Native is interesting to package nerds because it ships as a sizable prebuilt compiler runtime rather than a small formula-built utility. It also represents the point where a language package stops being just `kotlin` and splits into target-specific toolchains, artifacts, and compatibility surfaces.

### 时间线

- 2017-04: JetBrains announced the first Kotlin/Native Technology Preview.
- 2018-10: Kotlin 1.3 shipped with Kotlin/Native Beta.
- 2023-11: Kotlin 1.9.20 shipped major Kotlin/Native runtime improvements and stable Kotlin Multiplatform.
- 2024-05: Kotlin 2.0 shipped the stable K2 compiler across JVM, Native, Wasm, and JS.
- 2026-06-03: Kotlin 2.4.0 was released and supplied the Kotlin/Native source archive version used by this Homebrew Cask batch.

### Related projects

- Kotlin/Native is developed in the JetBrains Kotlin repository and is closely related to Kotlin Multiplatform, Kotlin/JS, Kotlin/Wasm, the K2 compiler, LLVM, Kotlin Gradle tooling, and iOS-oriented shared-code workflows.

### 来源

- <https://blog.jetbrains.com/kotlin/2017/04/kotlinnative-tech-preview-kotlin-without-a-vm/>
- <https://blog.jetbrains.com/kotlin/2018/10/kotlin-1-3/>
- <https://blog.jetbrains.com/kotlin/2023/11/kotlin-1-9-20-released/>
- <https://blog.jetbrains.com/kotlin/2024/05/celebrating-kotlin-2-0-fast-smart-and-multiplatform/>
- <https://kotlinlang.org/docs/native-overview.html>
- <https://kotlinlang.org/docs/releases.html>


## 安全说明

没有找到 kotlin-native 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew cask API
- **Tap:** homebrew/cask
- **Full Token:** kotlin-native
- **Names:** Kotlin Native
- **Artifacts:** Binary: 7, Target: 7
- **Deprecated:** no
- **Disabled:** no

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

- Nix - kotlin-native: normalized package name match | nixpkgs package indexes: kotlin-native from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Scoop - main/kotlin-native: normalized package name match | Scoop official bucket manifest trees: bucket/kotlin-native.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- zypper - klib - 1.0~git.20251221-1.2: installed executable or alias match | openSUSE Tumbleweed package metadata: klib from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C library with utility functions | https://github.com/attractivechaos/klib
- zypper - klib-devel - 1.0~git.20251221-1.2: installed executable or alias match | openSUSE Tumbleweed package metadata: klib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for klib | https://github.com/attractivechaos/klib


## 相关链接

- [Homebrew Cask packages](https://pkg.so/zh-hans/homebrew-cask-packages/) - Generated from Homebrew Cask package-manager metadata.
- [Homebrew Cask binaries](https://pkg.so/zh-hans/homebrew-cask-binaries/) - Cask artifact metadata includes a binary.

## Combined YAML source

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


## 来源

- pkg.so package database
- 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
