{"repo":"udhos/update-golang","free":true,"listed":false,"github":"https://github.com/udhos/update-golang","clone":"git clone https://github.com/udhos/update-golang.git","description":"update-golang is a script to easily fetch and install new Golang releases with minimum system intrusion","language":"Shell","stars":1925,"topics":["golang","go","script","shell"],"license":"MIT","category":"cli-tools","readme_excerpt":"update-golang update-golang is a script to easily fetch and install new Golang releases with minimum system intrusion. Table of Contents ================= How it works Usage Caution Remove Example Customization Per\\-user Install Created by gh-md-toc How it works ============ The script is based on official installation instructions from https://go.dev/doc/install. This is the default behavior: 1\\. Search for the latest binary release in https://go.dev/dl/. 2\\. The script uses local system OS and ARCH to download the correct binary release. It is not harmful to run the script multiple times. Downloaded releases are kept as cache under '/usr/local'. You can erase them manually. By default, the script only detects actual releases (not beta releases, not release candidates). However one can force any specific non-final release: $ # force specific release candidate $ sudo RELEASE=1.11rc1 ./update-golang.sh 3\\. The release is installed at '/usr/local/go'. 4\\. The path '/usr/local/go/bin' is added to PATH using '/etc/profile.d/golang path.sh'. 5\\. Only if needed, GOROOT is properly setup, also using '/etc/profile.d/golang path.sh'. The script DOES NOT ever modify the GOPATH variable. You can customize the behavior by setting environment variables (see Customization below). Usage ===== git clone https://github.com/udhos/update-golang cd update-golang sudo ./update-golang.sh Caution ======= Before running the script, make sure you have an untampered copy by verifying the SHA256 checks","default_branch":null,"files":null,"tree":[],"storefront":"/r/udhos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/udhos/update-golang/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}