Installing Kotlin command line compiler on Linux, Mac and Windows

Mostly I work on Mac and Linux. Installing Kotlin on a mac is pretty much simple if you have brew installed. Even on Linux, you can install it directly from the terminal. For windows, you need to download the release.

Mac :

  • Install homebrew if you don’t have it:
  • brew update
  • brew install kotlin

Linux :

  • Install SDKMAN : curl -s | bash
  • sdk install kotlin

Windows :

Other options :

MacPorts :

sudo port install kotlin

Snap :

sudo snap install --classic kotlin

Chocolatey for windows :

choco install kotlinc