Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep older versions of debian packages in the repository #1021

Closed
Congelli501 opened this issue Mar 7, 2020 · 4 comments
Closed

Keep older versions of debian packages in the repository #1021

Congelli501 opened this issue Mar 7, 2020 · 4 comments

Comments

@Congelli501
Copy link

The latest node release contains an important regression, breaking a lot of application (nodejs/node#32105).
As the nodesource repository only contains the latest version of node, it is not possible to install an older version of node in the meantime.

This is especially needed for docker images built from the ubuntu / debian base image, in which we can't install anything but the lastest version of each node major release.

 % apt-cache madison nodejs 
    nodejs | 13.10.1-1nodesource1 | https://deb.nodesource.com/node_13.x eoan/main amd64 Packages
    nodejs | 10.15.2~dfsg-2ubuntu1 | http://fr.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages

For example, the kubernetes debian repo contains a lot of different version of the same package, allowing downgrade if need be:

 % apt-cache madison kubectl
   kubectl |  1.17.3-00 | https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages
   kubectl |  1.17.2-00 | https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages
   kubectl |  1.17.1-00 | https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages
   kubectl |  1.17.0-00 | https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages
   kubectl |  1.16.7-00 | https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages
   kubectl |  1.16.6-00 | https://apt.kubernetes.io kubernetes-xenial/main amd64 Packages
...

Keeping versions for a month would be very helpful in those situation.

@igsu igsu self-assigned this Mar 8, 2020
@igsu igsu removed their assignment Jul 1, 2020
@zerodeux
Copy link

zerodeux commented Jul 7, 2020

I second that.

The good news is that the repository is already holding the previous versions : https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/

What is missing is only the way the Release file is built in the APT repo, it should mention all versions instead of only the latest one, and APT would automatically discover them. It should be a one line conf change in the repo builder.

That change would be backwards compatible : it will not break the existing behaviour for current users, they will always get the latest minor release from their APT source.

But for those who would want to pin down a specific version, it would be as simple as :

apt-get install nodejs=12.16.3-1nodesource1

@zerodeux
Copy link

@igsu any idea who to assign this ? Thanks !

@igsu
Copy link
Contributor

igsu commented Aug 31, 2020

@zerodeux as stated in the FAQ: #33 (comment) this has been considered by us, we will evaluate options to achieve a solution.

@igsu igsu closed this as completed Aug 31, 2020
@dylan-tock
Copy link

@zerodeux as stated in the FAQ: #33 (comment) this has been considered by us, we will evaluate options to achieve a solution.

@igsu Given Issue #33 has been closed without a fix (by you, in fact) Jan this year, is there any progress on implementing a permanent fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants