"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Install GO in UBUNTU machines

Install GO in UBUNTU machines

Published on 2024-08-06
Browse:666

Download Source

Download source from this link Go Binaries

Unpack Packages

After downloading the binary file may be in your ~/Downloads folder from terminal
use this command

cd Downloads

Then list the items in the directory by this command

ls -l | grep go

go-binary-find

Extract the binary files from the go1.22.2.linux-amd64.tar.gz file in the download folder (you may have download the another version) use this command

sudo tar -C /usr/local -xzf go1.22.2.linux-amd64.tar.gz

This command will extract the file into /usr/local folder

Add to PATH variable

Where the go binaries are you need to find it and then the path should be added to you path variable otherwise you will encounter some problems like go command not found by this command will be able to locate the go binary where it is

whereis go

whereis-go
Now copy the path and use below command

export PATH=$PATH:{your_copied_path_here}/bin

Verify Installation

Now use below command to verify your Installation

go version

verify-installation

Release Statement This article is reproduced at: https://dev.to/ahmed_abir/install-go-in-ubuntu-machines-4a5m?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3