Let’s roll to the next section to learn how to install this amazing tool on your preferred Linux distribution. How to Install Go (Golang) on Linux Go (Golang) can be easily installed from the distributions default package manager, but the default repositories might be outdated. So, it is...
Now let us go ahead and see two ways toinstall Golang and configure Go programming language in Linux. Install Go Language in Linux As stated above, we can install Golang either using your distribution's default package manager or compile and install Golang from source. We will see both. ...
1.Go tohttps://golang.org/dl/and download the latest version (i.e1.15.2) of GoLang in an archive file usingwget commandas follows: $ wget -c https://golang.org/dl/go1.15.2.linux-amd64.tar.gz [64-bit] $ wget -c https://golang.org/dl/go1.15.2.linux-386.tar.gz [32-bit...
Step # 2: Install Go on your Updated System After this system update, we are good to go with the installation of the Go language on our system which we can perform with the following command: $ sudo apt-get install golang The golang package contains the Go programming language compiler ...
sudo apt update Download the latest tarball file using wget. The current command is for version 1.21.5, but you can fetch the latest fromhere. $ wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz Unzip the file to your local directory with the following command: ...
sudo apt update && apt upgrade -y On Arch Linux and its derivatives: sudo pacman -Syu On RHEL and Fedora: sudo dnf upgrade Once you've updated and upgraded your system, you're ready to move on to the next steps. Method 1: Install Go on Linux With the Package Manager ...
sudoapt update&&sudoapt upgrade-y Note:Updating your system repository will ensure installing the updated version of the application. After you are done with updating, it’s time to installGoon Debian 12 using the below-given command: sudoaptinstallgolang-y ...
sudo apt update -y Step 1: Download Go To start the installation process: 1. Visit theGo downloads page. 2. Click the Linux box underFeatured downloadsto start the download. Note:Usewgetorcurlto download Go without accessing the browser. ...
To install Go on your Ubuntu, follow these steps: 1. Open your terminal, and run theapt updatecommand below to update the APT package repository to ensure the latest versions of packages are available. sudo apt update -y Updating the APT package repository ...
wgethttps://golang.org/dl/go1.15.8.linux-amd64.tar.gz Next, extract the archive in /usr/local directory: tar-C/usr/local-xzfgo1.15.8.linux-amd64.tar.gz Once we have extracted the archive, we need to export the go binary location to the path in the .bashrc file. ...