distributions icon indicating copy to clipboard operation
distributions copied to clipboard

[Deb] Provide a node_x repo, that always points to the latest version

Open Congelli501 opened this issue 1 year ago • 3 comments

Describe your feature request This is a feature request. It would be nice to have a deb registry that always points to the latest major version of nodejs, to auto-upgrade to the latest version.

Distribution Information:

  • OS: Ubuntu
  • Version : 24.10

Node Version:

  • Node: 23

To Reproduce Version 23.x of NodeJS is now available, I won't get the update without changing the registry URL in /etc/apt/sources.list.d/nodesource.list.

Expected behavior The current script & available repos are tied to a specific NodeJS version. On my dev machines, I like to always use the latest version to try out new features & test newer versions for regressions. The current model requires to change the registry URL on each new major release, on each dev machines.

A repo pointing to the latest release would be nice to have.

Congelli501 avatar Oct 19 '24 13:10 Congelli501

Hello @Congelli501,

Thank you for reaching out. At the moment, we do not have plans to create a separate repository to support multiple versions concurrently, as our repositories are designed to host a single version per release. However, we can provide a script that automatically configures the repository to always point to the latest version of Node.js.

You can find more details and access the script here: Using Debian as root - Node.js Current.

If you have any other questions or need further assistance, feel free to let us know.

JesusPaz avatar Oct 22 '24 19:10 JesusPaz

Duplicate of #1796

ferferga avatar Oct 29 '24 11:10 ferferga

Thanks for your response @JesusPaz .

That's interesting for docker builds / install scripts that runs regularly, but for dev machines, it still requires to manually run the _current script to get the repo up-to-date.

Moreover, I prefer to bypass the script and just write the nodesource.list file. This is faster that the provided install script and we prefer to limit execution of downloaded shell scripts if possible.

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
echo 'deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_23.x nodistro main' > /etc/apt/sources.list.d/nodesource.list

Congelli501 avatar Nov 05 '24 14:11 Congelli501