# kotlin を Homebrew, apt, MacPorts, Nix, pacman, scoop, chocolatey でインストール

kotlin のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:kotlin
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install kotlin
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kotlin
```

  証拠: MacPorts ports tree: lang/kotlin/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install kotlin
```

  証拠: Debian stable package indexes: kotlin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#kotlin
```

  証拠: nixpkgs package indexes: kotlin from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S kotlin
```

  証拠: Arch Linux sync databases: kotlin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/kotlin
```

  証拠: Scoop official bucket manifest trees: bucket/kotlin.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- Chocolatey (92%):

```sh
choco install kotlinc
```

  証拠: Chocolatey community package catalog: kotlinc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='10.436','istioctl'

## パッケージ情報

- **パッケージキー:** brew:kotlin
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.4.10
- **ソース概要:** Statically typed programming language for the JVM
- **ホームページ:** <https://kotlinlang.org/>
- **リポジトリ:** <https://github.com/JetBrains/kotlin>
- **最終更新:** 2026-07-14T13:11:38Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- kapt (エイリアス)
- kotlin (エイリアス)
- kotlinc (エイリアス)
- kotlinc-js (エイリアス)
- kotlinc-jvm (エイリアス)
- kotlinc-wasm (エイリアス)
- kotlinr (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.4.10
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://android-developers.googleblog.com/2017/05/android-announces-support-for-kotlin.html>
- <https://android-developers.googleblog.com/2019/05/google-io-2019-empowering-developers-to-build-experiences-on-Android-Play.html>
- <https://blog.jetbrains.com/kotlin/2011/08/why-jetbrains-needs-kotlin/>
- <https://blog.jetbrains.com/kotlin/2016/02/kotlin-1-0-released-pragmatic-language-for-jvm-and-android/>
- <https://blog.jetbrains.com/kotlin/2018/10/kotlin-1-3/>
- <https://blog.jetbrains.com/kotlin/2024/05/celebrating-kotlin-2-0-fast-smart-and-multiplatform/>
- <https://kotlinlang.org/docs/faq.html>
- <https://kotlinlang.org/docs/releases.html>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

## 他のパッケージマネージャ記録

- Debian apt - kotlin - 1.3.31+ds1-3: normalized package name match | Debian stable package indexes: kotlin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cross-platform, general-purpose programming language | https://kotlinlang.org
- Nix - kotlin: normalized package name match | nixpkgs package indexes: kotlin from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - kotlin - 1.3.31+ds1-1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: kotlin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cross-platform, general-purpose programming language | https://kotlinlang.org
- pacman - kotlin - 2.4.10-1: normalized package name match | Arch Linux sync databases: kotlin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Statically typed programming language with multiplatform support | https://kotlinlang.org/
- MacPorts - kotlin: normalized package name match | MacPorts ports tree: lang/kotlin/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/kotlin: normalized package name match | Scoop official bucket manifest trees: bucket/kotlin.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- Chocolatey - kotlinc: installed executable or alias match | Chocolatey community package catalog: kotlinc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='10.436','istioctl'


## Combined YAML source

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