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

Install dedicated version of a package #57

Closed
natefabian18 opened this issue Jul 5, 2024 · 4 comments
Closed

Install dedicated version of a package #57

natefabian18 opened this issue Jul 5, 2024 · 4 comments

Comments

@natefabian18
Copy link

Would it be possible to specify a specific line in the download list to be of a specific version. Im trying to install a nodejs application offline and would need the LTS version of nodejs rather than the experimental. Similar to how you can install a dedicated version though the choco command with choco install nodejs --version 20.15.0

@robertZaufall
Copy link
Owner

It's sure possible but I did not have the usecase myself by now.

Nodejs is an easy case to do it by hand by the way.
You can download the nodejs.install-nupkg directly from the chocolatey repository, as the binaries are embedded in the file and the package has not to be modified for local storage.
nodejs.install is sufficient - you don't need the nodejs package.

@gggggeorge
Copy link

gggggeorge commented Jul 10, 2024

First, let me say ChocolateStoreCore is very cool (I was doing basically the same thing, but editing the nupkg packages myself -which is not so much fun), especially that it iterates through any dependencies.


I'm all for this as well (ability to specify a version).

Here is a real-world example, I just encountered:

I just tried downloading firefox, and ChocolateStoreCore.exe successfully gets version 127.0.2:

image


I go to https://community.chocolatey.org/packages/Firefox

-and the latest is actually 128.0.0, as per (released yesterday 07/09/2024):

image


So, to avoid this sort of ambiguity of whatever the logic is (caching, 2nd to the latest version, etc.), could we simply have the ability to indicate the (optional) version in download.txt:

firefox 128.0.0

Some reasons why:

  1. maybe I only want version x.y.z, a few versions older than the latest/greatest.

  2. if I mess up (I accidentally delete my "store" dir), I can just run ChocolateStoreCore.exe, and it will do exactly what it did say, three weeks ago, when I ran it -this is great for repeatability.


For context, I'm using ChocolateStoreCore.exe to create the "corrected" packages (meaning external binaries are now local downloads), in the context of a Sonatype Nexus service:

  • hosted: where I upload the packages created by ChocolateStoreCore.exe.
  • proxy: where I get packages without external binary references -from chocolatey.org
  • group: binds hosted & proxy together -and the group is where my local chocolatey install(s) gets their packages from, and the "group" is behind an internet firewall.

Thanks,
George H.
07/10/2024 4:07pm ET

@robertZaufall
Copy link
Owner

Should be fixed now. Use this syntax as suggested: firefox 128.0.0 or nodejs.install 20.15.0. Please let me know if this works for you.

@gggggeorge
Copy link

I just tried it out, and it works great, many thanks!

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

3 participants