# Install kotlin with Homebrew, apt, MacPorts, Nix, pacman, scoop, chocolatey

Statically typed programming language for the JVM. Version 2.4.0 via Homebrew; verified 2026-06-03.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install kotlin
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kotlin
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:kotlin
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/kotlin>
- **Version:** 2.4.0
- **Source summary:** Statically typed programming language for the JVM
- **Homepage:** <https://kotlinlang.org/>
- **Repository:** <https://github.com/JetBrains/kotlin>
- **Upstream docs:** <https://kotlinlang.org/docs/home.html>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/JetBrains/kotlin/releases/download/v2.4.0/kotlin-compiler-2.4.0.zip>
- **Last updated:** 2026-06-03T12:06:15Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- kapt (cli)
- kotlin (cli)
- kotlinc (cli)
- kotlinc-js (cli)
- kotlinc-jvm (cli)
- kapt (alias)
- kotlin (alias)
- kotlinc (alias)
- kotlinc-js (alias)
- kotlinc-jvm (alias)

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.4.0
- Package-manager updated: 2026-06-03
- Local data: ok
- Upstream repository: https://github.com/JetBrains/kotlin
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

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

## Other Package-Manager Records

- 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.0-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.5272','w10privacy'


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [frege](https://www.automicvault.com/pkg/brew/frege/) - Shares av.db curated category or tags: cli, compiler, jvm, language-runtime, programming-language.
- [scala](https://www.automicvault.com/pkg/brew/scala/) - Shares av.db curated category or tags: cli, compiler, jvm, language-runtime, programming-language.
- [algol68g](https://www.automicvault.com/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ats2-postiats](https://www.automicvault.com/pkg/brew/ats2-postiats/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ballerina](https://www.automicvault.com/pkg/brew/ballerina/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [chapel](https://www.automicvault.com/pkg/brew/chapel/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [coconut](https://www.automicvault.com/pkg/brew/coconut/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [coffeescript](https://www.automicvault.com/pkg/brew/coffeescript/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [flix](https://www.automicvault.com/pkg/brew/flix/) - Local package facts share a topical domain. Shared terms: cli, jvm, language, language-runtime, openjdk.

## Combined YAML source

View the package source record on GitHub. [combined/kotlin.yml](https://github.com/automic-vault/db/blob/main/combined/kotlin.yml)


## Sources

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