Similar to HomeBrew, MacPorts is a package manager for macOS. Installing MacPorts is easy. It can be installed on a system by:
- Installing Xcode and the Xcode command-line tools.
- Agreeing to the Xcode license. This can be done in the terminal by running xcodebuild -license.
- Installing the required version of MacPorts.
MacPort versions can be downloaded from https://www.macports.org/install.php.
Once downloaded, locate your terminal and run port install kotlin as the superuser:
sudo port install kotlin