Skip to content

Simple scripts to install and uninstall Go (Golang) on your linux system.

Notifications You must be signed in to change notification settings

rroslin/go-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Go Installer

This repository provides simple scripts to install and uninstall Go (Golang) on your linux system.

Contents

  • install.sh: A script to download and install Go.
  • uninstall.sh: A script to remove Go from your system.

Installation

To install Go follow these steps:

  1. Clone the repository:
    git clone <repository-url>
    cd <repository-directory>
  2. [OPTIONAL] Set GO_TAR_URL if you want to install a specific version. If NOT set it will install the latest version.
    export GO_TAR_URL=<SPECIFIC_GO_RELEASE_TAR>
  3. Run the install.sh script to install:
    ./install.sh

Uninstallation

To remove Go, you can run the uninstall.sh script:

  1. Run the uninstall.sh script:
    ./uninstall.sh

Troubleshooting

  • Permission Issues - You may need to run the script with sudo if you encounter permission errors while installing Go.

  • Path Issues Make sure to modify the script to use your preferred start-up file. Examples: ~/.bashrc, ~/.bash_profile, or ~/.zshrc

    # Specify bash source file to add Go environment variables
    BASH_SOURCE=<YOUR_STARTUP_FILE>

About

Simple scripts to install and uninstall Go (Golang) on your linux system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages