Hugo version not updating to latest - linux

I am trying to work with the Hugo static site generator.
Problem: Hugo is saying it is updated to the latest version but it is not.
$ hugo version
Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate: 2018-04-25T17:16:11Z
But the latest version is now v0.70.0
System:
Windows Subsystem for Linux via the terminal in Visual Studio Code v1.45.0
Any help would be much appreciated thank you all.

If you're using a Debian-based system, e.g. Ubuntu, you can download the appropriate .deb from https://github.com/gohugoio/hugo/releases and install it with, for example:
sudo dpkg --install ./hugo_extended_0.70.0_Linux-64bit.deb
I wrote about this in footnote 10 in my Hugo Tutorial.

If you've installed it via the apt package manager, you might be out of luck there, because the official repositories might not be up to date with the latest version of Hugo.
To update the repositories and install the latest available version of hugo, try doing
sudo apt update
sudo apt install hugo
However, I see it's only getting version 0.6x.
If you want to use it on Windows, you could try installing it via Chocolatey or Scoop. Both seem to have version 0.70.x in their repositories, but you'd need to install them first, because they're not Windows out-of-the-box software. Not sure if and how it would work if you use it in the WSL, though.
Otherwise, there's always the good'ol download the binary and save it.

The Ubuntu package manager "apt" does not contain the latest version of Hugo right now. It needs to be updated by the repo owner or similar.
I solved my problem by following a binary install guide here

Related

How to install riscv-tools older version using Homebrew

I need to use riscv64-unknown-elf-gdb with Clion (on Mac) that is currently supporting only up to version 9.2, I have installed riscv-tools using brew install riscv-tools as instructed here and got the latest version which is 10.1.
After that, I tried brew install riscv-tools#9.2.0 but got: No available formula or cask with the name "riscv-tools#9.2.0"
Is there any way to install a specific older version?
And how bad it is to use an usupported version of gdb with Clion? so far it seems to be working anyway.
A solution in Linux will also be very appreciated.
If you want to get gdb 9.2, you can easily get it from https://ftp.gnu.org/gnu/gdb/ where gdb 9.2 already support risc-v.

Maven latest version installation UBuntu 16 without using "wget"

Is there any way to install latest Maven specific version without using wget command in ubuntu 16.
You could try doing what my link below recommends, but add references to Bionic instead of Xenial. Then all you need to do is sudo apt install maven.
Note the current version of support Maven for Ubuntu 18.04 (Bionic) is 3.6.0-1, so if that isn't new enough for you (the latest Maven release is 3.6.2), you'll have to find another way.
https://medium.com/#george.shuklin/how-to-install-packages-from-a-newer-distribution-without-installing-unwanted-6584fa93208f
you could install sdkman on the machine 1st and then use it to install and manage various java-related tools (maven among them), but installing sdkman itself likely involves a wget

Error in installing puppet enterprise

I have downloaded the Puppet Enterprise 3.7 installer from the PuppetLabs website,
but while installing I got the below error...
./puppet-enterprise-installer
ERROR: This is a supported platform, but this is not the installer for this platform. Please use the platform specific installer
(puppet-enterprise-3.7.2-el-6-x86_64).
How can I fix this?
You can get the enterprise linux puppet installer for 3.7.2 following this link.
https://s3.amazonaws.com/pe-builds/released/3.7.2/puppet-enterprise-3.7.2-el-6-x86_64.tar.gz
Looks to me like you downloaded it for the wrong linux distribution.
Hope this helps.
** This only applies to the open source version **
Which distribution are you installing this on? The error is telling you to use the EL6 install package which is available on their yum repo. It's much easier if you just install their repo package:
rpm -Uhv http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
and then run yum install puppet facter.

Path to Node.js Installation in Ubuntu

I am new to Ubuntu (linux).
I installed node.js for a project.
Recently I am getting this error on npm install.
Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
I found a stack link below as
Node pre error
Under the solution it asks for the directory where node.js is installed and currently i am clueless where the nodejs is installed.
Please help me on how can I locate the directory where node.js is installed.
Quick explanation
You have a version with -pre. Get rid of it and put the latest stable version from nodejs.org.
You can use which to locate a command. For your case, type which nodejs.
EDIT: The answer from your link is referring to the path of node source code, not the nodejs binary.
On Ubuntu, most software can be installed from the built-in repositories. This updates it for you (even if it's sometimes a bit outdated).
To install the stable version the Ubuntu way, install the nodejs-legacy package (after uninstalling your version):
sudo apt install nodejs-legacy
To use the latest, refer to https://askubuntu.com/a/663052/438156 (my answer), or https://askubuntu.com/a/711976/438156 (bit more involved, more the Ubuntu way).

error when trying to install libtmcg "configure: error: libgmp >= 4.1 is needed"

I've tried installing different libgmp's from ubuntu app center and I tried installing it manually from http://gmplib.org/#DOWNLOAD but I can't get this to configure it's an old library and I'm trying to run it on the latest version of ubuntu but I didn't think I'd have problems but I'm new to trying to use libraries like this any help would be greatly appreciated.
I've had these kind of errors installing dependencies before, and I realized that you must to force the installation of such pack having it... you didn't mention the version of your Ubuntu, so I'm assuming you're working with 12.10. But if not you always can look up for the version you are running on.
Just download the pack from here, of course, depending on your architecture, and after that run sudo apt-get -f install in order to force the installation of broken packs.

Resources