From e10dc82ce09f49438d1d43fd630d18d6ee242512 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 27 Feb 2012 14:16:56 +1100 Subject: [PATCH] doc: instruct freebsd/linux users to rm the old version first R=golang-dev, r CC=golang-dev https://golang.org/cl/5701052 --- doc/install.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/install.html b/doc/install.html index e99b60dc091..217b52a0e65 100644 --- a/doc/install.html +++ b/doc/install.html @@ -68,16 +68,26 @@ export PATH=$PATH:$GOROOT/bin

FreeBSD and Linux

+

+On FreeBSD and Linux, 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
+
+

Extract the archive into /usr/local, creating a Go tree in -/usr/local/go (typically this must be run as root or through -sudo): +/usr/local/go:

 tar -C /usr/local -xzf go.release.go1.tar.gz
 
+

(Typically these commands must be run as root or through sudo.)

+

Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile