Menu
User

DropVPS Team

Writer: John hens

how to install go on ubuntu 25.10

how to install go on ubuntu 25.10

Publication Date

10/20/2025

Category

Articles

Reading Time

2 Min

Table of Contents

Go (Golang) is an open-source programming language developed by Google, widely used for web development, cloud services, and system tools. Installing Go on Ubuntu 25.10 allows developers to write, compile, and run programs efficiently in a stable Linux environment.

Step 1: Update the System

Updating your system ensures all packages and repositories are current to prevent issues during installation.

sudo apt update
sudo apt upgrade -y

Step 2: Download the Latest Go Version

To get the official Go distribution with the latest features and security updates, download the latest stable tarball directly from the Go website.

wget https://golang.org/dl/go1.xx.linux-amd64.tar.gz

Step 3: Extract the Go Tarball

To install Go system-wide and make it available for all users, extract the downloaded tarball into the /usr/local directory.

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

Step 4: Set Environment Variables

To run Go commands from any terminal and ensure the system recognizes Go binaries, add the Go installation path to your environment variables.

echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile

Step 5: Verify Go Installation

To confirm that Go has been installed correctly and is ready for development, check its version using the command line.

go version

Step 6: Test Your First Go Program

To ensure your Go environment is working correctly, create and run a simple “Hello, Go!” program to verify proper execution.

echo 'package main; import "fmt"; func main() { fmt.Println("Hello, Go!") }' > hello.go

Execute the program to see the output.

go run hello.go

Step 7: Key Features of Go

Go provides features that make it fast, efficient, and ideal for modern software development.

go env
Linux VPS
U
Loading...

Related Posts