Automic VaultAutomic Vault

brew

使用 Homebrew, apt, MacPorts, Nix, pacman, scoop, chocolatey 安装 kotlin

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install kotlin

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install kotlin

MacPorts ports tree · lang/kotlin/Portfile · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/kotlin

Scoop official bucket manifest trees · bucket/kotlin.json · 来源: api.github.com

Chocolatey已验证 · 92%
choco install kotlinc

Chocolatey community package catalog · kotlinc · 来源: community.chocolatey.org

概览

软件包摘要

Statically typed programming language for the JVM

命令和别名

  • kapt
  • kotlin
  • kotlinc
  • kotlinc-js
  • kotlinc-jvm

历史

项目历史与用法

Kotlin is JetBrains' open-source, statically typed programming language for JVM, Android, JavaScript, Wasm, and Native targets. In package managers, the `kotlin` formula represents the command-line compiler and scripting tools behind a language that moved from JetBrains' internal productivity needs to mainstream Android and multiplatform development.

项目历史

JetBrains started Kotlin in 2010 and open-sourced it early in its development. JetBrains' 2011 explanation emphasized internal productivity, Java interoperability, and compilation speed: the company wanted a more expressive language for IntelliJ-based development without abandoning the JVM ecosystem.

Kotlin 1.0 was released on February 15, 2016 as a stable language for JVM and Android development. JetBrains positioned it as a pragmatic language focused on Java interoperability, null-safety, clarity, tooling, and use across server-side, mobile, and desktop applications.

The language broadened after 1.0. Google announced official Android support for Kotlin in May 2017, JetBrains and Google announced the Kotlin Foundation work around the same era, Kotlin/Native and multiplatform support expanded through 2017 and 2018, and Kotlin 2.0 in May 2024 introduced the stable K2 compiler as the default compiler architecture.

采用历史

Kotlin's adoption accelerated through Android. The Android team announced official support in 2017, noting production use by companies such as Expedia, Flipboard, Pinterest, and Square. At Google I/O 2019, Google reported that more than 50 percent of professional Android developers used Kotlin and described Android development as increasingly Kotlin-first.

Beyond Android, Kotlin became part of server-side JVM work, Gradle build logic, multiplatform mobile projects, browser and Wasm experiments, and native targets. Package-manager adoption reflects that spread: the formula exposes command-line tools such as `kotlin`, `kotlinc`, `kotlinc-jvm`, `kotlinc-js`, and `kapt` for users who want compiler access outside an IDE.

使用方式

The Homebrew formula installs the Kotlin command-line compiler and related launchers. Users run `kotlinc` for compilation, `kotlin` for running Kotlin programs and scripts, target-specific compiler frontends for JVM and JavaScript, and `kapt` for annotation-processing workflows in JVM builds.

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

Kotlin is a classic language-runtime package with an unusually strong IDE and Android story. For package nerds, it is notable because a Homebrew formula can give shell access to a language whose day-to-day use is often mediated by Gradle, IntelliJ IDEA, Android Studio, or platform-specific SDKs.

It also illustrates how modern language packages accumulate companion artifacts: Gradle plugins, compiler plugins, `kotlinx` libraries, native toolchains, LSP servers, and IDE integrations all orbit the base compiler package.

时间线

  • 2010: JetBrains started the Kotlin project.
  • 2011-08: JetBrains publicly explained why it was investing in Kotlin.
  • 2016-02-15: Kotlin 1.0 was released.
  • 2017-05: Android announced official Kotlin support.
  • 2018-10: Kotlin 1.3 shipped with stable coroutines and Kotlin/Native Beta.
  • 2019-05: Google reported Kotlin-first Android momentum at Google I/O 2019.
  • 2024-05: Kotlin 2.0 shipped with the stable K2 compiler.
  • 2026-06-03: Kotlin 2.4.0 was released.

Related projects

  • Kotlin is related to JetBrains IntelliJ IDEA, Android Studio, Gradle, Kotlin Multiplatform, Kotlin/Native, Kotlin/JS, Kotlin/Wasm, Ktor, kotlinx.coroutines, kapt, KSP, and the Kotlin Language Server.

来源

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:programming language

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
kaptcli全局可执行文件
kotlincli全局可执行文件
kotlinccli全局可执行文件
kotlinc-jscli全局可执行文件
kotlinc-jvmcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://github.com/JetBrains/kotlin

安装元数据

软件包元数据

软件包键brew:kotlin
版本2.4.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/kotlin
主页https://kotlinlang.org/
仓库https://github.com/JetBrains/kotlin
上游文档https://kotlinlang.org/docs/home.html
许可证Apache-2.0
源码归档https://github.com/JetBrains/kotlin/releases/download/v2.4.0/kotlin-compiler-2.4.0.zip
最后更新2026-06-03T12:06:15Z
Pulseupdated
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

kotlin 1.3.31+ds1-3

cross-platform, general-purpose programming language

https://kotlinlang.org

sudo apt install kotlin
  • Section: java
  • Architecture: all
  • 11 依赖
  • normalized package name match
  • 匹配方式:Kotlin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: kotlin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

kotlin

nix profile install nixpkgs#kotlin
  • normalized package name match
  • 匹配方式:Kotlin
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: kotlin from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

kotlin 1.3.31+ds1-1ubuntu1

cross-platform, general-purpose programming language

https://kotlinlang.org

sudo apt install kotlin
  • Section: universe/java
  • Architecture: all
  • 11 依赖
  • normalized package name match
  • 匹配方式:Kotlin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: kotlin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

kotlin 2.4.0-1

Statically typed programming language with multiplatform support

https://kotlinlang.org/

sudo pacman -S kotlin
  • License: Apache-2.0 AND custom
  • Architecture: any
  • 1 依赖
  • normalized package name match
  • 匹配方式:Kotlin
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: kotlin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

kotlin

sudo port install kotlin
  • normalized package name match
  • 匹配方式:Kotlin
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/kotlin/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/kotlin

scoop install main/kotlin
  • normalized package name match
  • 匹配方式:Kotlin
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/kotlin.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
Chocolatey92%

kotlinc

choco install kotlinc
  • installed executable or alias match
  • 匹配方式:Kotlinc
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: kotlinc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='10.5272','w10privacy'

来源线索

由仓库数据生成

此页面由 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment