Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'

This commit is contained in:
Bjørn Erik Pedersen
2023-12-04 15:24:01 +01:00
810 changed files with 24147 additions and 7766 deletions

View File

@@ -2,24 +2,25 @@
title: Linux
description: Install Hugo on Linux.
categories: [installation]
keywords: []
menu:
docs:
parent: installation
weight: 30
toc: true
weight: 30
toc: true
---
{{% readfile file="/installation/_common/01-editions.md" %}}
{{% include "installation/_common/01-editions.md" %}}
{{% readfile file="/installation/_common/02-prerequisites.md" %}}
{{% include "installation/_common/02-prerequisites.md" %}}
{{% readfile file="/installation/_common/03-prebuilt-binaries.md" %}}
{{% include "installation/_common/03-prebuilt-binaries.md" %}}
## Package managers
### Snap
[Snap] is a free and open source package manager for Linux. Available for [most distributions], snap packages are simple to install and are automatically updated.
[Snap] is a free and open-source package manager for Linux. Available for [most distributions], snap packages are simple to install and are automatically updated.
The Hugo snap package is [strictly confined]. Strictly confined snaps run in complete isolation, up to a minimal access level thats deemed always safe. The sites you create and build must be located within your home directory, or on removable media.
@@ -47,13 +48,17 @@ sudo snap disconnect hugo:ssh-keys
[strictly confined]: https://snapcraft.io/docs/snap-confinement
[Snap]: https://snapcraft.io/
{{% readfile file="/installation/_common/homebrew.md" %}}
{{% include "installation/_common/homebrew.md" %}}
## Repository packages
Most Linux distributions maintain a repository for commonly installed applications. Please note that these repositories may not contain the [latest release].
Most Linux distributions maintain a repository for commonly installed applications.
{{% note %}}
Due to Long Term Release (LTR) guidelines, most Linux package repositories will not contain the [latest release].
[latest release]: https://github.com/gohugoio/hugo/releases/latest
{{% /note %}}
### Arch Linux
@@ -92,7 +97,6 @@ You can also download Debian packages from the [latest release] page.
Derivatives of the [Fedora] distribution of Linux include [CentOS], [Red Hat Enterprise Linux], and others. This will install the extended edition of Hugo:
```sh
sudo dnf install hugo
```
@@ -105,7 +109,6 @@ sudo dnf install hugo
Derivatives of the [openSUSE] distribution of Linux include [GeckoLinux], [Linux Karmada], and others. This will install the extended edition of Hugo:
```sh
sudo zypper install hugo
```
@@ -124,7 +127,7 @@ sudo eopkg install hugo
[Solus]: https://getsol.us/
{{% readfile file="/installation/_common/04-build-from-source.md" %}}
{{% include "installation/_common/04-build-from-source.md" %}}
## Comparison