How to Install latest Hugo version on Ubuntu?
The simplest way is to use brew instead of apk as package manager:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# remove apk hugo vesrion
sudo apt purge hugo
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# add homebrew to your PATH, as explained at the end of setup process
#
# zsh
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> ~/.zprofile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
cat ~/.zprofile
#
# or bash
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
cat ~/.profile
# install latest hugo
sudo apt-get install build-essential curl file git
brew install hugo
# check hugo version
hugo version
|