How To Install Hugo On Ubuntu
July 25, 2017Download latest *.deb and use dpkg.
There are a few ways to install Hugo on Ubuntu/Linux
- Snap (too troublesome with dependency and some issues)
- apt-get (easy, but might not have the latest version)
- Download and install Hugo package (mights sounds troublesome, but I think it’s the most reliable method)
Download Hugo package
Visit Hugo release page to find the latest stable release (look under Downloads).
Use the following command to check your server machine achitecture
uname -i
# output
x86_64
Download the latest version for the correct platform and architecture (select .deb file)
wget https://github.com/gohugoio/hugo/releases/download/v0.25.1/hugo_0.25.1_Linux-64bit.deb
Install Hugo package
Install the package with dpkg
sudo dpkg -i hugo*.deb
Check if installation is successful by checking its version
hugo version
# output
Hugo Static Site Generator v0.25.1 linux/amd64 BuildDate: 2017-07-10T14:58:07+08:00
Install the Pygments Syntax Highlighter
You should install Pygments if you need server-side syntax highlighting of code block in your website.
sudo apt-get install python-pip
sudo pip install Pygments
References
- algo-trading
- algolia
- analytics
- android
- android-ktx
- android-permission
- android-studio
- apps-script
- bash
- binance
- bootstrap
- bootstrapvue
- chartjs
- chrome
- cloud-functions
- coding-interview
- contentresolver
- coroutines
- crashlytics
- crypto
- css
- dagger2
- datastore
- datetime
- docker
- eslint
- firebase
- firebase-auth
- firebase-hosting
- firestore
- firestore-security-rules
- flask
- fontawesome
- fresco
- git
- github
- glide
- godot
- google-app-engine
- google-cloud-storage
- google-colab
- google-drive
- google-maps
- google-places
- google-play
- google-sheets
- gradle
- html
- hugo
- inkscape
- java
- java-time
- javascript
- jetpack-compose
- jetson-nano
- kotlin
- kotlin-serialization
- layout
- lets-encrypt
- lifecycle
- linux
- logging
- lubuntu
- markdown
- mate
- material-design
- matplotlib
- md5
- mongodb
- moshi
- mplfinance
- mysql
- navigation
- nginx
- nodejs
- npm
- nuxtjs
- nvm
- pandas
- payment
- pip
- pwa
- pyenv
- python
- recylerview
- regex
- room
- rxjava
- scoped-storage
- selenium
- social-media
- ssh
- ssl
- static-site-generator
- static-website-hosting
- sublime-text
- ubuntu
- unit-test
- uwsgi
- viewmodel
- viewpager2
- virtualbox
- vue-chartjs
- vue-cli
- vue-router
- vuejs
- vuelidate
- vuepress
- web-development
- web-hosting
- webpack
- windows
- workmanager
- wsl
- yarn