Questions tagged [chocolatey]

Chocolatey is a Windows apt-get like global automation tool (used mostly as a silent installer). Use this tag for questions about Chocolatey usage and package creation/maintenance. Issues with packages you don't maintain should be asked on Super User, or better, reported to the package maintainer listed on the community feed for the problem package.

Chocolatey is a Windows apt-get-like package management 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 and package creation/maintenance. However, issues with packages you don't maintain are best suited for Super User, or even better, by contacting the package maintainer listed on the community feed for the problem package.

See chocolatey.org for all details.

642 questions
13
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
  • 2,326
  • 2
  • 32
  • 32
13
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,914
  • 6
  • 45
  • 52
13
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,749
  • 6
  • 20
  • 35
12
votes
4 answers

'Set-ExecutionPolicy' is not recognized as an internal or external command, operable program or batch file while installing chocolaty

'Set-ExecutionPolicy' is not recognized as an internal or external command, operable program or batch file. getting this error while trying to install chocolaty through cmd
Manisha
  • 231
  • 1
  • 3
  • 12
12
votes
1 answer

How do I get Chocolatey to not add an EXE to the path?

Chocolatey adds any .exe it finds in my package install directory to the path (step #3 in the wiki). How do I disable this for a given .exe in my package? The .exe is a Windows Service and there is no need to add it to the path.
Josh Buedel
  • 1,853
  • 16
  • 41
11
votes
1 answer

Chocolatey install Error: The request was aborted: Could not create SSL/TLS secure channel

I'm getting the following error when installing Chocolatey - 'https://chocolatey.org/install.ps1' Error The request was aborted: Could not create SSL/TLS secure channel
jamie yiw
  • 461
  • 3
  • 8
11
votes
2 answers

Should I disable built-in auto-update of packages installed by Chocolatey?

For example, I installed Chrome with Chocolatey. Do I need to turn off Chrome's auto-update, and use cup upgrade only?
Alpha Huang
  • 1,297
  • 1
  • 12
  • 15
11
votes
2 answers

How to install Python3 to custom path using Chocolatey?

I'm installing Python 3 with Chocolatey, which installs into C:\ProgramData\chocolatey\lib\python3: > choco install python3 Is there any way I can get Python3 to install into C:\Python35 instead? I´m aware of this question which is related to…
Wlad
  • 2,866
  • 3
  • 28
  • 42
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
  • 10,842
  • 12
  • 78
  • 123
10
votes
3 answers

How to install Microsoft Windows Terminal in Windows 10 version 1909

[Note] this is a historic problem that is specific to Windows 10 version 1909, which does not satisfy the Windows Terminal requirement by then. It would no longer be a problem for most nowadays systems. Alright, this should be a fairly simple…
xpt
  • 20,363
  • 37
  • 127
  • 216
10
votes
2 answers

How do I install Docker using Chocolatey?

I ran choco install docker-cli choco install docker-machine choco install docker-compose choco install docker-desktop I tried to test the installation according to the documentation, but got an…
Chloe
  • 25,162
  • 40
  • 190
  • 357
10
votes
2 answers

How to configure Chocolatey to use a corporate proxy?

I'm having trouble installing Chocolatey packages from behind a corporate proxy. Internet Explorer is correctly configured but I'm having issues getting it to work through PowerShell. I can use the Web-Client to download pages e.g. Microsoft.com,…
clickcell
  • 439
  • 3
  • 6
  • 20
10
votes
1 answer

Can't run iex in Windows command prompt or git bash

I just installed elixir via chocolatey on my Windows 7 machine. At the root of the C directory, inside of an Administrator command prompt, I ran: c:\> cinst elixir This successfully installed erlang and elixir -- v.1.0.4. Nothing failed, all…
reknirt
  • 2,237
  • 5
  • 29
  • 48
9
votes
3 answers

Chocolatey installation in docker started to fail, restart due to .NET framework is suddenly needed

Chocolatey installation started to fail last week. Dockerfile starts with FROM python:3.8.2-windowsservercore-ltsc2016 SHELL ["powershell","-Command"] RUN "Set-ExecutionPolicy Bypass -Scope Process -Force; [Net.ServicePointManager]::SecurityProtocol…
Ľubomír Mlích
  • 649
  • 6
  • 12
9
votes
1 answer

How do I install Chocolatey packages entirely from "local" resources?

I am trying to install a Chocolatey package from local. Since I want to be able to store all the "artifacts" in a disk and go to a PC and just type choco install -s D:\External\choco-repo I noticed that the choco search -s…
javapadawan
  • 897
  • 6
  • 12
  • 29
1 2
3
42 43