1

I have multiple Hugo websites. And some of their themes is not compatible with the newer versions of Hugo. After struggling enough with the errors, I gave up and wanted to have different versions installed for the respective websites. I learned there is a quick way if you use macOS with brew (brew switch hugo 0.27 for example) but none for Ubuntu Linux. I might have a complete solution if I install Golang and create different virtual environments for each website but I am looking for a quick workaround solution like the brew example.

1 Answer 1

2

A quick solution exists for ubuntu as well. Hugo binaries do not need to be installed and can be run directly from the bin folder. So you need to download the versions you need from the Github releases repository then you need to change the name of the Hugo file as you wish. (renaming with version number would help to remember it later i.e. hugo0583 for hugo_0.58.3 for example) then move it to the bin folder with sudo mv hugo0583 /usr/local/bin/hugo0583 command. and finally, use Hugo commands with the new name and you are good to go.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.