Installing Hugo Static Website Generator on Linux
-
@Emad-R said in Installing Hugo Static Website Generator on Linux:
no quick start guide?
One step at a time.
-
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
Hugo is a popular static website generator and runs on Linux just fine. However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd. For those on Linux you likely want the Snap package instead. Here are the install instructions for all major Linux OSes.
sudo snap install hugo
Yeah, their documentation, while it appears great, was actually 100% useless. It was far from intuitive. The only thing that gave me a working Hugo to start with was installing from snap.
-
Does that installs Hugo or Hugo Extended?
-
They probably don't have any "official" Linux documentation because it's just a binary you download from their releases page on GitHub.
I just throw it in ~/bin and it works.
-
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.
I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.
-
Installing Hugo from tarball is what I would use now.
I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.
-
@black3dynamite said in Installing Hugo Static Website Generator on Linux:
Installing Hugo from tarball is what I would use now.
I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.
Snap automates that out of the gate.
-
@stacksofplates said in Installing Hugo Static Website Generator on Linux:
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.
I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.
Completely different than what I got from the same link this morning. I went to that page, clicked on Linux, and they only showed Brewlinux, which isn't even the current name of the system.
-
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
@black3dynamite said in Installing Hugo Static Website Generator on Linux:
Installing Hugo from tarball is what I would use now.
I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.
Snap automates that out of the gate.
If I was using Ubuntu. Not installing snapd on my Fedora systems.
-
@black3dynamite said in Installing Hugo Static Website Generator on Linux:
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
@black3dynamite said in Installing Hugo Static Website Generator on Linux:
Installing Hugo from tarball is what I would use now.
I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.
Snap automates that out of the gate.
If I was using Ubuntu. Not installing snapd on my Fedora systems.
I always add Snap to Fedora. Why would you only want it on Ubuntu? It's a universal standard.
-
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
@stacksofplates said in Installing Hugo Static Website Generator on Linux:
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.
I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.
Completely different than what I got from the same link this morning. I went to that page, clicked on Linux, and they only showed Brewlinux, which isn't even the current name of the system.
Way back machine shows it's been there since at least the 13th.
https://web.archive.org/web/20191113183617/https://gohugo.io/getting-started/installing/
-
@stacksofplates said in Installing Hugo Static Website Generator on Linux:
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
@stacksofplates said in Installing Hugo Static Website Generator on Linux:
@scottalanmiller said in Installing Hugo Static Website Generator on Linux:
However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.
I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.
Completely different than what I got from the same link this morning. I went to that page, clicked on Linux, and they only showed Brewlinux, which isn't even the current name of the system.
Way back machine shows it's been there since at least the 13th.
https://web.archive.org/web/20191113183617/https://gohugo.io/getting-started/installing/
Very weird. I wonder if it was a cache somewhere? I definitely poked around this morning and Linuxbrew was the only thing that it had and had it from every link that I tried on their site.