Background: I’m using CentOS 7.4.
I created a repo file for nginx which should make it easier to keep updated.
etc/nginx I created a folder
yum.repos.d and inside of that folder I inluded the file
Inside of the file I included these lines.
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
Question: Can I do something similar for node.js? I can’t find anything online.
My current system:
Step 1) Check online to determine the latest version. https://nodejs.org/en/
Step 2) Compare it against my installed version,
Step 3) If I need to update use
nvm install lts/* --reinstall-packages-from=node
That “works” for nginx not because you created the repository, but because nginx did.
In the case of Node.js, they also have created repositories and posted instructions on their web site.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.