System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| #!/bin/bash | |
| # | |
| # Cleans up garbage lines and duplicate entries. | |
| # | |
| # DEPENDENCIES: | |
| # | |
| # - rg: cargo install ripgrep | |
| # - unique: go install github.com/ro-tex/unique@latest | |
| # - sponge: brew install moreutils | |
| # |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by: