How to install Hugo on centOS7

Hugo is not officially available for some linux platforms like Fedora, CentOS, and Red Hat etc, but un official versions of hugo are available, Here are the 10 simple procedures on how to install hugo in Centos7


  1. First we need the repositary informations of hugo so visit the above link https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/

  2. In this page you can see the list of available platforms for hugo, select your appropriate os on ‘REPO Download’ column

  3. After opening your respective download a new page containing your repository details will appear, go ahead and copy the whole text

  4. Now on your Centos machine go to folder

    • /etc/yum.repos.d
  5. create a file (for ex) hugo.repo (or) run the below command

    • sudo vi hugo.repo
    • Note: This command will ask for root password


  6. Press ‘i’ key and paste the copied repositary details

  7. Now save and exit ny pressing ‘esc’ key and then type ‘:wq’ and press ‘Enter’

  8. Now run the below command

    • sudo yum update
    • Note: This command will prompt for root password
  9. After it is updated, run command below command

    • sudo yum install hugo
    • Note : This command will promt for root password
  10. Once it gets completed run the below command

    • hugo version
    • Note : The above command returns the hugo version

Congratulations! You have installed hugo on your centos machine

Note : This Blog Mainly Focussed on CentOS7 and the Commands may change for other Linux Platforms


Software Developer.