Mention Debian backports in Golang section

Also add `rm` of existing Go installation
closes #7
This commit is contained in:
Indrek Haav 2022-11-11 10:06:59 +02:00 committed by GitHub
parent 77205a2e50
commit 4410f1cc56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -49,16 +49,17 @@ $ rm node_setup.sh
#### Golang
[Golang](https://go.dev/dl/) needs to be downloaded and installed manually. The latest version as of the writing of this is 1.19.3, but check the website and change the URLs below if necessary:
While [Golang](https://go.dev/) is available in Debian (and Ubuntu) repos, the version is usually outdated (even in Debian backports). For the most up-to-date version, to keep up with what PhotoPrism uses, Golang needs to be downloaded and installed manually. The latest version as of the writing of this is 1.19.3, but [check the website](https://go.dev/dl/) and change the URLs below if necessary:
```shell
$ wget https://golang.org/dl/go1.19.3.linux-amd64.tar.gz
$ sudo rm -rf /usr/local/go
$ sudo tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
$ sudo ln -s /usr/local/go/bin/go /usr/local/bin/go
$ rm go1.19.3.linux-amd64.tar.gz
```
This downloads and extracts Golang to `/usr/local/go`, and creates a symlink to the `go` binary in `/usr/local/bin` (so it's in the $PATH).
This downloads and extracts Golang to `/usr/local/go` (deleting old installation, if it exists), and creates a symlink to the `go` binary in `/usr/local/bin` (so it's in the $PATH).
#### Tensorflow