From f43b6d470eea1618b3ead2e1e21612b6d22730e1 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 16 Sep 2013 11:20:07 +1000 Subject: [PATCH] doc: add uninstallation instructions Fixes #5821. R=golang-dev, kamil.kisiel CC=golang-dev https://golang.org/cl/13720043 --- doc/install.html | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/doc/install.html b/doc/install.html index eff2b30fff..9252a5935d 100644 --- a/doc/install.html +++ b/doc/install.html @@ -94,12 +94,7 @@ environment variables under Windows.

If you are upgrading from an older version of Go you must -first remove the existing version from /usr/local/go: -

- -
-rm -r /usr/local/go
-
+first remove the existing version.

Extract the archive @@ -150,7 +145,7 @@ Terminal sessions for the change to take effect. The Go project provides two installation options for Windows users (besides installing from source): a zip archive that requires you to set some environment variables and an -experimental MSI installer that configures your installation automatically. +MSI installer that configures your installation automatically.

Zip archive

@@ -169,7 +164,7 @@ the GOROOT environment variable to your chosen path. Add the bin subdirectory of your Go root (for example, c:\Go\bin) to your PATH environment variable.

-

MSI installer (experimental)

+

MSI installer

Open the MSI file @@ -275,3 +270,26 @@ The official mailing list for discussion of the Go language is Bugs should be reported using the Go issue tracker.

+ + +

Uninstalling Go

+ +

+To remove an existing Go installation from your system delete the +go directory. This is usually /usr/local/go +under Linux, Mac OS X, and FreeBSD or c:\Go +under Windows. +

+ +

+You should also remove the Go bin directory from your +PATH environment variable. +Under Linux and FreeBSD you should edit /etc/profile or +$HOME/.profile. +If you installed Go with the Mac OS X package then you +should remove the /etc/paths.d/go file. +Windows users should read the section about setting +environment variables under Windows. +

+ + -- 2.50.0