DEV Community

Shubham Kumar
Shubham Kumar

Posted on • Originally published at blog.shubham.codes on

Upgrading Hugo to latest version on Debian based systems

There is a bad news for Ubuntu (or any Debian based OS) user if you have installed Hugo using apt. The official apt repository is not being updated continuously.

Today, I wanted to experiment with the Tailwind support introduced in Hugo 0.128.0. But the apt package manager does not has this version. The latest version is 0.92.2 as of now.

apt list -a hugo

: Listing...
: hugo/jammy-updates,jammy-security,now 0.92.2-1ubuntu0.1 amd64 [installed]
: hugo/jammy 0.92.2-1 amd64
Enter fullscreen mode Exit fullscreen mode

In such scenarios, you can install the .deb file directly from the published releases. The disadvantage of this method is, you will lose the ability to upgrade the version automatically. In the future, you will be restricted to download the deb file and install the updated version.

Anyways, here are the steps to do so.

First look for the latest (or the version you want) to install at the GoHugoIO release page - https://github.com/gohugoio/hugo/releases

At the time of writing this post, the latest version is 0.144.2. Any my current version is 0.92.2.

hugo version

: hugo v0.92.2+extended linux/amd64 BuildDate=2023-01-31T11:11:57Z VendorInfo=ubuntu:0.92.2-1ubuntu0.1
Enter fullscreen mode Exit fullscreen mode

From the Downloads directory, I can run the below command to download the deb file that I want to install. You can use any directory to download this file. Generally people use /tmp, but I like all my downloads in my Downloads directory.

wget https://github.com/gohugoio/hugo/releases/download/v0.144.2/hugo_0.144.2_linux-amd64.deb
Enter fullscreen mode Exit fullscreen mode

Next you can install the deb file as follows.

ls | grep hugo

: hugo_0.144.2_linux-amd64.deb

dpkg -i hugo_0.144.2_linux-amd64.deb
Enter fullscreen mode Exit fullscreen mode

This should upgrade your installation to latest.

hugo version

: hugo v0.144.2-098c68fd18f48031a7145bedab30cbaede48858f linux/amd64 BuildDate=2025-02-19T12:17:04Z VendorInfo=gohugoio
Enter fullscreen mode Exit fullscreen mode

Hope this will help you upgrading Hugo to latest version on Debian based systems.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay