Skip to main content
168 votes

How to list installed Chocolatey packages?

For Chocolatey 2+: choco list For older versions (--local-only was removed in 2.0): choco list --local-only Or: clist -l Source: https://chocolatey.org/docs/commands-list This list all packages ...
Grilse's user avatar
  • 3,643
68 votes

Remove Chocolatey registration without uninstalling application

Example (remove the package myExamplePackage from chocolatey without uninstalling) choco uninstall myExamplePackage -n --skipautouninstaller From the chocolatey docs: NOTE: A package with a ...
Patrick Heck's user avatar
55 votes

How to list installed Chocolatey packages?

UPDATE: Starting with version 0.11.0 of Chocolatey CLI, there is now a choco export command, which allows the creation of a packages.config file, which includes a list of all the currently installed ...
Gary Ewan Park's user avatar
30 votes

How to list Chocolatey packages already installed and newer version available from the command line

Just run the case, and choco said I should use this choco list -lo That did the trick for me, so here 2c from me.
Jaroslaw Stadnicki's user avatar
25 votes
Accepted

Using chocolatey to install lots of apps at once

Take a look at the documentation at https://docs.chocolatey.org/en-us/choco/commands/install (or type choco install -? at the command line (you may want to pipe that to more or less). You certainly ...
Mr. Hargrove's user avatar
23 votes
Accepted

How to choose between 32 bit or 64 bit version of a package?

I was missing the forcex86 switch: --x86, --forcex86 ForceX86 - Force x86 (32bit) installation on 64 bit systems. Defaults to false. Here is the full list of Options and Switches. https://...
Allan Xu's user avatar
  • 689
15 votes
Accepted

Chocolatey as non-admin user

I've discovered how to do it for both administrative and non-administrative users. In the Chocolatey non-administrative section of the docs, it says that to install Chocolatey as non-admin, first we ...
Leonardo Puglia's user avatar
15 votes
Accepted

Does chocolatey allow to have multiple versions of same packages side by side?

Have a look at the documentation for the install command here: https://chocolatey.org/docs/commands-install Specifically, here: -m, --sxs, --sidebyside, --side-by-side, --allowmultiple, --allow-...
Gary Ewan Park's user avatar
11 votes
Accepted

How can I upgrade a Chocolatey package if it's already installed, and install it if it isn't?

Running choco upgrade will install the package if it isn't already installed. https://chocolatey.org/docs/commandsupgrade
Eric Sondergard's user avatar
10 votes
Accepted

Chocolatey - Python - Am I doing it wrong?

In Windows you can't normally just install something and immediately use it on the command line without closing and reopening your command shell. Chocolatey however comes with a command you can run ...
ferventcoder's user avatar
  • 4,867
9 votes
Accepted

How to place symlinks to all executables installed through Chocolatey in a particular directory?

tl;dr: What you are attempting to do is not possible in the way you want to do it. Fortunately, ShimGenerator can do this exact thing (that's what it was designed for and it comes with Chocolatey): &...
ferventcoder's user avatar
  • 4,867
9 votes
Accepted

How do I uninstall a Chocolatey package that won't go away?

I used --force and it went away. choco uninstall cyg-get --force
Chloe's user avatar
  • 6,046
9 votes

How can I solve warning when I install chocolatey?

Here's the solution for the tab completion warning: Open a PowerShell session and run: notepad $profile This opens the profile file in Notepad. Copy and paste the following code into Notepad and ...
Tereza Tomcova's user avatar
8 votes

How to update all Chocolatey packages except one?

According to the official documentation: choco upgrade all --except="'skype,conemu'"
Luke's user avatar
  • 434
8 votes

Is there a way to list Chocolatey packages with their install directory?

This is likely missing some results, but helped me locate some packages: (Get-Content C:\ProgramData\chocolatey\logs\choco.summary.log) -match 'Software installed to'
DonBecker's user avatar
  • 181
8 votes

Is there a way to list Chocolatey packages with their install directory?

I found some usefull stuff in C:\ProgramData\chocolatey\logs\choco.summary.log C:\ProgramData\chocolatey\logs\chocolatey.log Surely, these logs contain lots of redundant (for this case) info. But at ...
dmytro.poliarush's user avatar
8 votes

How to list installed Chocolatey packages?

On Windows 10, PowerShell 7.3.8 through Windows Terminal 1.18: > clist -l clist: The term 'clist' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the ...
quantme's user avatar
  • 195
8 votes
Accepted

Every now and again I want to upgrade a pinned package in chocolatey

In the current release of Chocolatey, 0.10.15, there isn't a way to bypass the pin that is in place on a package. You would need to do: choco pin remove -n=thunderbird choco upgrade thunderbird choco ...
Gary Ewan Park's user avatar
7 votes

Is there a way to list Chocolatey packages with their install directory?

If Chocolatey generates a shim for the package, e.g. yourprogram.exe you can tell the path to executable file by the following Powershell command: $a="path to executable:" (yourprogram --...
maoizm's user avatar
  • 1,094
6 votes
Accepted

What is the use of -pre in Chocolatey?

It means install newest version, including any pre-release that may be available. From https://github.com/chocolatey/choco/wiki/CommandsInstall: --pre, --prerelease Prerelease - Include ...
Ƭᴇcʜιᴇ007's user avatar
6 votes
Accepted

Chocolatey can't install apps, 'How do you want to open this file?' dialog box is opened instead

Type where.exe choco to determine where PowerShell believes it is using Chocolatey from. If there are any other files that come up besides the proper location, such as C:\Windows\System32\choco, ...
ferventcoder's user avatar
  • 4,867
6 votes

Is there a way to list all Chocolatey packages that have no dependencies?

The following Powershell "one-liner" will display all dependencies for each package installed on your system cd C:\ProgramData\chocolatey\lib Get-ChildItem C:\ProgramData\chocolatey\lib -...
K. Shu's user avatar
  • 61
6 votes
Accepted

Chocolatey - How to install hidden and unlisted package?

To install an unlisted package, you need to know the version you are attempting to install and pass --version ### with choco install pkgname. However if you read the comments, this package was ...
ferventcoder's user avatar
  • 4,867
6 votes
Accepted

Why multiple versions of notepadplusplus in Chocolatey

From the Chocolatey FAQ: What is the difference between packages no suffix as compared to .install .portable? What is the difference between packages named .install (i. e. autohotkey.install), ....
Wouter's user avatar
  • 1,651
6 votes
Accepted

Where does chocolatey install sysinternals?

The install location is here: C:\ProgramData\chocolatey\lib\sysinternals\tools On Windows Server 2016 and Windows 10. Or as Alex above suggested the universal way with environment variables: echo %...
David's user avatar
  • 2,322
6 votes

Force reinstall of all chocolatey packages after profile "migration"

It seems this should work: choco upgrade all --force ... and remember to execute this in a Powershell opened with "Run As Administrator". Edit: If any of the installations fail (which occasionally ...
einpoklum's user avatar
  • 9,852
5 votes

Nuget Packages do not display on powershell Windows 10

There is no NuGet option by default when you do a get-packagesource By default PSGallery and Chocolatey have package sources. NuGet doesn't. To add NuGet as a package source, you need to run the ...
Tim Haintz's user avatar
5 votes
Accepted

Is there a way to persist Chocolatey package parameters so that they are silently reused on upgrade?

Upgrade to at least Chocolatey v0.10.4 and turn on the feature that does this for you automatically. choco feature enable -n useRememberedArgumentsForUpgrades To better understand all of the ...
ferventcoder's user avatar
  • 4,867
5 votes

How to resolve "ERROR: Specified cast is not valid." error during installation?

This error appears to be the result of Get-ItemProperty failing. From your log, the part of the script that is failing is here: Write-Output "Searching if new version exists..." $checkreg64 = Get-...
root's user avatar
  • 3,750

Only top scored, non community-wiki answers of a minimum length are eligible