Add packages for the different major versions
I should be able to install Ruby 2.4, 2.5, or 2.6 instead of just the latest Ruby. A lot of people have applications that need a certain Ruby version to run.
Right now the package is just the latest Ruby.
Create a ruby24, ruby25, and ruby26 package in addition to the current package. That way someone that wants the latest can just install "ruby".
N/A
N/A
I must have missed this when it was initially posted.
But let me say my opinion on the matter.
I strongly disagree with having multiple packages only for the usage of specific major/minor packages, if you want a polluted repository with duplicated packages, then this is exactly what you need to make that happen.
Using different packages specific to each major/minor version should be used very sparingly, and IMO should be avoided in most cases.
There is already a way to install a specific version of a package by specifying the --version argument when calling choco install.
Say for instance you want the 2.5.0.1 version of the package, you would then install the package with choco install ruby --version 2.5.0.1.
Only specifying the major.minor version of the package and getting the latest version matching that range isn't possible yet though. But there is an open issue for such an implementation in choco: https://github.com/chocolatey/choco/issues/1278
I will close this as this will probably be possible one day by choco client and one can easily create script that does that.
Most helpful comment
I must have missed this when it was initially posted.
But let me say my opinion on the matter.
I strongly disagree with having multiple packages only for the usage of specific major/minor packages, if you want a polluted repository with duplicated packages, then this is exactly what you need to make that happen.
Using different packages specific to each major/minor version should be used very sparingly, and IMO should be avoided in most cases.
There is already a way to install a specific version of a package by specifying the
--versionargument when callingchoco install.Say for instance you want the
2.5.0.1version of the package, you would then install the package withchoco install ruby --version 2.5.0.1.Only specifying the major.minor version of the package and getting the latest version matching that range isn't possible yet though. But there is an open issue for such an implementation in choco: https://github.com/chocolatey/choco/issues/1278