Hugo
Install Hugo
Option 1: Using Snap (Recommended)
Snap is the easiest way to get the latest version of Hugo on Ubuntu. Simply use the following command:
sudo snap install hugo
If you need the extended version with SASS/SCSS support:
sudo snap install hugo --channel=extended
Option 2: Using the Official Debian Package
To install the latest version using a Debian package, download the .deb file from the official Hugo GitHub releases page and install it with dpkg:
# For the standard version
wget https://github.com/gohugoio/hugo/releases/latest/download/hugo_extended_Linux-64bit.deb
sudo dpkg -i hugo_*_Linux-64bit.deb
sudo apt install -f # To fix any dependency issues
The extended version includes additional features such as Sass building, extra minifying, and resource processing that might be needed for certain themes.
Option 3: Using Homebrew
If you have Homebrew installed on your Ubuntu system:
brew install hugo
Verifying Your Installation
After installation, verify that Hugo was installed correctly:
hugo version
This should display the version information of your Hugo installation.
Note that regardless of which method you choose, if you plan to work with themes that use Sass/SCSS, you’ll want to ensure you install the extended version of Hugo, as the standard version doesn’t support these features.
Would you like me to explain more about any of these installation methods?