Questions tagged [chocolatey]

Chocolatey is a Windows apt-get like global automation tool (used mostly as a silent installer).

Chocolatey is a Windows apt-get like global automation tool (used mostly as a silent installer). It uses PowerShell and you can automate almost everything.

It allows you to create packages and submit them to the main feed repository, put those packages on custom sources like includes myget.org, a file share, directories, custom feeds and private feeds. Most packages take advantage of the functions that a Chocolatey PowerShell module provides that make downloading and silently installing an application no more than a function call.

Use this tag for questions about Chocolatey usage, creation of Chocolatey packages etc.

See chocolatey.org for all details.

519 questions
24
votes
8 answers

How do I install Chocolatey packages offline?

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 packages offline? I just want to put all the packages in a shared…
suresh2
  • 1,099
  • 2
  • 14
  • 25
21
votes
6 answers

PowerShell script to install Chocolatey and a list of packages

My goal is to create a single script that I can download and run on a fresh Windows build to set up the system as much as possible. The first thing I am trying to do is install as many of the programs that I always like to have available as…
Benjamin Cuningham
  • 777
  • 1
  • 11
  • 25
21
votes
2 answers

How do I get the list of all the versions of a package?

I would like to get the list of versions of a package. What is the command line for this? It would be also nice to search in versions, for example: all the versions that are higher or lower than a specific version.
Boris Modylevsky
  • 2,697
  • 1
  • 21
  • 40
21
votes
2 answers

How do I remove a package installed via Chocolatey?

I installed gittfs using cinst gittfs How do I now remove the gittfs package?
Ben Aston
  • 45,997
  • 54
  • 176
  • 303
16
votes
3 answers

How do I pass parameters to the installer in a Chocolatey package?

I created a package from an MSI. However, I need to pass in custom parameters. /i SERVER='xx.yyy.com Here are the few things I tried by reading the choco command spec, but none worked. > choco install foo -y --params "SERVER='xx.yyy.com'" > choco…
Raghav
  • 2,402
  • 4
  • 27
  • 49
14
votes
2 answers

Fix Chocolatey "Access is Denied"

I just installed Chocolatey for the first time using this command in an admin cmd: @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object …
Jmaurier
  • 427
  • 1
  • 6
  • 21
14
votes
1 answer

Chocolaty packages not installing via OneGet/PackageManagement in Windows 10?

I'm trying to use oneget w/chocolaty and it doesn't seem to be working at all. The package says it's installed, no warning or notification. It installs the package in the choco directory, but doesn't run the install script and therefore the…
Ashtonian
  • 4,088
  • 2
  • 16
  • 24
13
votes
5 answers

Running chocolatey in docker container fails

I have docker on windows server 2016. The Dockerfile contains some build tools to be installed via chocolatey. It fails every time when I am trying to build image from mentioned Dockerfile. The chocolatey tool is not running in container. # Use the…
user2301
  • 1,433
  • 4
  • 25
  • 56
13
votes
1 answer

Why doesn't Chocolatey install packages into `C:\Program Files\`?

According to the Windows installation rules, programs should be installed to C:\Program Files (64-bit program / x86-64) or C:\Program Files (x86) (32-bit program / x86). The program is copied into a sub-sub-folder containing the vendor name and the…
Paebbels
  • 13,346
  • 11
  • 50
  • 114
12
votes
1 answer

How do I uninstall a Chocolatey package and all its dependencies?

Reading the documentation, it appears that I should be able to install package and its dependencies with the -x flag. But when I try to uninstall the javaruntime package with the command choco uninstall javaruntime -x, it fails because of…
PortMan
  • 3,105
  • 4
  • 25
  • 45
12
votes
1 answer

To which folder does Chocolatey download the packages before installing them?

I've looked into C:\ProgramData\chocolatey\lib. Each package I've installed has its own folder and some content like this: C:. | notepadplusplus.nupkg | \---tools chocolateyInstall.ps1 But there are no files like notepadplusplus.msi or…
Lernkurve
  • 17,488
  • 24
  • 77
  • 110
12
votes
2 answers

How to use custom parameters in chocolatey '.config' file?

I use chocolatey to install git with parameters and that works fine in command-line: choco install git -params '"/GitOnlyOnPath /NoAutoCrlf"' Now, I want to put that in my .config file, where it does not seem to work. Here is an example of how I…
SevenEleven
  • 1,860
  • 2
  • 29
  • 28
12
votes
1 answer

How does Chocolatey know which packages are installed locally?

How does Chocolatey determine which packages are installed on the local system? Somehow choco list -localonly lists packages installed locally and invokes nuget.exe in the process. In NuGet I know packages.config lists installed packages, but in…
Christian
  • 9,205
  • 6
  • 42
  • 51
11
votes
1 answer

How to test dependencies of Chocolatey packages locally?

Problem A Chocolatey Package, which requires certain software located on the Chocolatey Gallery has been created by following the instructions on this website. If the nuspec file contains dependencies: ...
030
  • 8,013
  • 8
  • 63
  • 100
11
votes
3 answers

Error message installing Chocolatey in PowerShell

I'm trying to install Chocolatey to use with PowerShell. The recommended way to install it is copy and paste the following line. @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object…
RafaelGP
  • 1,539
  • 4
  • 19
  • 31
1
2
3
34 35