mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 22:24:56 -04:00
Adjust Linux install
This commit is contained in:
parent
d51397c2fe
commit
5e0cfaa92b
@ -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 user’s `$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 user’s `$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
|
Loading…
x
Reference in New Issue
Block a user