This page looks best with JavaScript enabled

Installing Hugo

 ·  ☕ 1 min read

Source: Hugo > Getting Started > Installing

This web site is generated by Hugo.

Installing Hugo on Linux is as simple as dowloading a binary in a tarball, extracting it and make it available on the searchpath ($PATH).

  1. Select a version and the platform architecture to install from the Hugo’s releases web page

  2. Download the tarball:

    1
    2
    
    $ cd ~/Downloads
    $ wget https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_0.80.0_Linux-64bit.tar.gz
    
  3. Unpack the tarball:

    1
    2
    3
    4
    
    $ tar -xvf hugo_0.80.0_Linux-64bit.tar.gz
    LICENSE
    README.md
    hugo
    
  4. Move the hugo executable to a directory on your searchpath:

    1
    
    $ sudo mv hugo  /usr/local/bin
    

    Alternatively, move it to some other path and add that path to the PATH environment variable:

    1
    2
    
    $ mv hugo /my/tool/path
    $ export PATH=/my/tool/path:$PATH  # add this to your .bashrc
    
  5. Check if the hugo command can be executed:

    1
    2
    
    $ hugo version
    Hugo Static Site Generator v0.80.0-792EF0F4 linux/amd64 BuildDate: 2020-12-31T13:37:58Z
    

Philipp Westphal
WRITTEN BY
Philipp Westphal
Software Developer & Structural Engineer