Adjust Linux install

This commit is contained in:
Bjørn Erik Pedersen 2017-07-23 21:24:55 +02:00
parent d51397c2fe
commit 5e0cfaa92b
2 changed files with 17 additions and 16 deletions

View File

@ -412,12 +412,24 @@ C:\Hugo\Sites\example.com>dir
## <i class="icon-linux"></i>Linux
### Debian and Ubuntu
### Snap Package
In any of the [Linux distributions that support snaps](https://snapcraft.io/docs/core/install):
In any of the [Linux distributions that support snaps][snaps]:
```
sudo apt install hugo
snap install hugo
```
{{% note %}}
Hugo-as-a-snap can write only inside the users `$HOME` directory---and gvfs-mounted directories owned by the user---because of Snaps confinement and security model. More information is also available [in this related GitHub issue](https://github.com/gohugoio/hugo/issues/3143).
{{% /note %}}
### Debian and Ubuntu
Debian and Ubuntu provide a `hugo` version via `apt-get`:
```
sudo apt-get install hugo
```
#### Pros
@ -427,7 +439,7 @@ sudo apt install hugo
#### Cons
* Might not be the latest version, especially if you are using an older, stable version (e.g., Ubuntu 16.04 LTS). Until backports and PPA are available, you may consider installing the Hugo snap package to get the latest version of Hugo, as described below.
* Might not be the latest version, especially if you are using an older, stable version (e.g., Ubuntu 16.04 LTS). Until backports and PPA are available, you may consider installing the Hugo snap package to get the latest version of Hugo.
### Arch
@ -447,17 +459,6 @@ yaourt -S hugo
See the [related discussion in the Hugo forums][redhatforum].
### Snap Package
In any of the [Linux distributions that support snaps][snaps]:
```
snap install hugo
```
{{% note %}}
Hugo-as-a-snap can write only inside the users `$HOME` directory---and gvfs-mounted directories owned by the user---because of Snaps confinement and security model. More information is also available [in this related GitHub issue](https://github.com/gohugoio/hugo/issues/3143).
{{% /note %}}
## Upgrade Hugo

@ -1 +1 @@
Subproject commit d0445e2ad6bcffcbfa305650dd66e308543bcfdc
Subproject commit a12544f00e3f50450eae1c1108c71eefb71f327f