How to install Golang (go) on Arch Linux

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to install the programming language the Go programming language.

If you are a developer, you may already know Go is a free and open source programming language created by Google, which can be installed on any Linux distro, including Arch Linux.

Installing go language, allows you to develop and run go projects on your Arch Linux machine.

Go can be easily installed in Arch Linux, via pacman, directly from the terminal, as go package is available in the extra repository of Arch Linux, so all you have to do is use pacman to install go in your system.

Step 1 - Update your system

In order to be able to download and install Go programming language on your Arch Linux system, you must update your system first.

To do so, simply execute the command below.

sudo pacman -Syu

Next, authenticate by entering sudo password.

If there are outdated packages in your system, you will be prompted to confirm that you want to update these packages, all you have to do is press Y so that you can update all outdated packages.

Step 2 - Install Go

Now that your system is updated, you can proceed to install go.

Since go is available in the extra repository on Arch Linux, to download go you can easily do so by using pacman.

To do so, simply run the command below.

sudo pacman -S go

Once you run the command above, you will be prompted to confirm that you want to install go on your system. Press Y and then enter in order to proceed installing go.

Once go is installed, you will see a similar output in your terminal.

Step 3 - Verify Go installation

Go is now installed in your Arch Linux machine. However, before you start using go, you need to make sure that go was installed correctly.

Checking go version can tell you if go is installed or not, and if installed which version of go was installed.

To check Go version, you can do so by using the version command.

go version

Uninstall go in Arch Linux

We used pacman to install Go on Arch Linux, which means uninstalling go can also be done by using pacman.

To uninstall go, first execute the command below.

sudo pacman -R go

Next, you will be asked to authenticate, enter sudo password and press enter.

Next, you need to confirm that you want to remove go from your system. To do so, simply press Y key, and then press enter to proceed removing go.


In this tutorial, you learned how to install and uninstall go programming language on Arch Linux.

By now, you should be able to use go, and run go projects in your system.