From 44da181738d4acdc321309fd99b1f18835476d70 Mon Sep 17 00:00:00 2001 From: regis Date: Mon, 2 Dec 2024 20:06:57 +0100 Subject: [PATCH] how to run a specific deb version of hugo --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf1b0a8ee..939b45dc3 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,17 @@ Download the deb above and then do ``sudo dpkg -i hugo_extended_0.126.1_linux-amd64.deb`` -### 🪟 Windows: +**📝 Note:** if your system has another version of Hugo, no need to mess up with docker, snap, nix. Just extract the binaries somewhere with `dpkg -x` . +Example, assuming that you use a dedicated directory for your local binaries : + +```sh +mkdir -p ~/apps/hugo_128/ +wget https://github.com/gohugoio/hugo/releases/download/v0.128.0/hugo_extended_0.128.0_linux-amd64.deb --output-document ~/apps/hugo_128/hugo_extended_0.128.0_linux-amd64.deb +dpkg -x hugo_extended_0.128.0_linux-amd64.deb +~/apps/hugo_128/usr/local/bin/hugo server +``` + +### 🪟 Windows [Follow these notes](https://gohugo.io/installation/windows/#prebuilt-binaries)