How do I install Chocolatey packages offline?

后端 未结 7 1584
误落风尘
误落风尘 2021-02-01 17:54

I am trying to automate to set up a developer machine software installation. Chocolatey is good to install packages when you connected to the Internet. Is there a way to install

7条回答
  •  野的像风
    2021-02-01 18:51

    Nifty. That's exactly what I'm doing currently!

    For what it's worth, to install from a network shared folder, I'm using:

    choco upgrade eclipse -y -s \\network\users\KyleStoflet\Eclipse
    

    For example, here I'm upgrading Eclipse, and I'll explain the line a bit more:

    -y skips the confirmation

    -s provides the source path

    network and users are placeholders for our network, and user directories

    ... and for test purposes, I've got our versions in my directory. Inside that directory there are multiple directories for Eclipse, Visual Studio, and other various software that we use for development.

    An important note: I've only gotten this working for the .nupkg files that were retrieved directly from the Chocolatey packages page. I didn't end up finding a fix for executables.

提交回复
热议问题