Skip to content

Commit

Permalink
doc: instruct freebsd/linux users to rm the old version first
Browse files Browse the repository at this point in the history
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5701052
  • Loading branch information
adg committed Feb 27, 2012
1 parent 5876b4e commit e10dc82
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions doc/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,26 @@ <h2 id="install">Installing the Go tools</h2>

<h3 id="freebsd_linux">FreeBSD and Linux</h3>

<p>
On FreeBSD and Linux, if you are upgrading from an older version of Go you must
first remove the existing version from <code>/usr/local/go</code>:
</p>

<pre>
rm -r /usr/local/go
</pre>

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

<pre>
tar -C /usr/local -xzf go.release.go1.tar.gz
</pre>

<p>(Typically these commands must be run as root or through <code>sudo</code>.)</p>

<p>
Add <code>/usr/local/go/bin</code> to the <code>PATH</code> environment
variable. You can do this by adding this line to your <code>/etc/profile</code>
Expand Down

0 comments on commit e10dc82

Please sign in to comment.