![]() This will print the installed version of Go to the console. Bonus: How to Install Go on macOS: Installing Go in Mac OS X using Package Installerįrom the golang’s download page, get the Mac package installer (ending in. To check if Go was successfully installed, open your terminal and run: $ go version Then install Go by running: $ sudo apt install golang-go Check the installation and version of Go The benefit of this approach is stability – while you won't be able to install the latest and greatest version of any package, you can be certain that your system won't break.įirst, update your system with the following commands: $ sudo apt update While Arch Linux's pacman is on the bleeding edge, packages installed using apt and its variants are often several versions behind. Using Ubuntu’s Source Package Manager ( apt) is the easiest way to install Go. How to install Arch Linux from scratch Bonus: How to Install Go on Ubuntu / Linux Mint: How to build a photo feed with Go and Vue.js More info about Arch Linux: This will print the installed version of Go to the console, while at the same time making sure the installation went smoothly. To check if Go was successfully installed, run: $ go version Remember that the -S flag is used to install a single package or a list of packages, the y option refreshes the list of all Arch Linux packages, and the option u upgrades all packages that are out of date.Īfter your system is completely up to date, install Go with the following command: $ sudo pacman -S go Check the installation and version of Go ![]() Once you've confirmed that it's safe to update your system, just run the following command: $ sudo pacman -Syu Any out-of-the-ordinary steps that you have to do to prevent packages from breaking will be listed in a post there. However, before updating your system and its packages, remember to check the Arch Linux home page first. Based on the Arch Linux philosophy of providing new software versions very fast, you will get a very current version of Go.īefore you can install the Go package, you have to bring the system and all of your installed packages up to date. Using the Arch Linux Package Manager ( pacman) is the easiest way to install Go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |