Install GoLand on Ubuntu 24.04

Install GoLand on Ubuntu 24.04

GoLand is an integrated development environment (IDE) from JetBrains tailored for Go development. It offers advanced code analysis, efficient navigation, and integration with modern Go tools and frameworks. This tutorial explains how to install GoLand on Ubuntu 24.04.

Install GoLand

Run the following command to get the most recent GoLand version directly from the JetBrains API:

GOLAND_VERSION=$(curl -s "https://data.services.jetbrains.com/products/releases?code=GO&latest=true&type=release" | grep -Po '"version":"\K[0-9.]+')

Use the version variable to download the archive:

wget -O goland.tar.gz https://download.jetbrains.com/go/goland-$GOLAND_VERSION.tar.gz

Create the GoLand installation directory and extract the files:

sudo mkdir -p /opt/goland
sudo tar xf goland.tar.gz --strip-components=1 -C /opt/goland

Remove the downloaded archive:

rm -rf goland.tar.gz

Testing GoLand

To start GoLand from the terminal, run:

/opt/goland/bin/goland

Once it opens, you can create a desktop launcher from the welcome screen for easier access in the future. This will let you run GoLand from the application menu.

Uninstall GoLand

If you no longer need GoLand, delete the installation directory:

sudo rm -rf /opt/goland

Remove the desktop shortcut:

sudo rm -rf /usr/share/applications/jetbrains-goland.desktop

Remove user-specific settings, cache, and data:

rm -rf ~/.{cache,config,local/share}/JetBrains/GoLand*

Leave a Comment

Cancel reply

Your email address will not be published.