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 ...
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 ...
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 ...
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.
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 ...
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://...
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 ...
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-...
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
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 ...
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): &...
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
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 ...
8
votes
How to update all Chocolatey packages except one?
According to the official documentation:
choco upgrade all --except="'skype,conemu'"
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'
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 ...
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 ...
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 ...
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 --...
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 ...
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, ...
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 -...
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 ...
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), ....
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 %...
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 ...
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 ...
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 ...
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-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
chocolatey × 142windows × 35
powershell × 28
windows-10 × 21
package-management × 14
installation × 13
windows-7 × 10
uninstall × 5
command-line × 4
git × 4
windows-packagemanagement × 4
cygwin × 3
packages × 3
virtualbox × 2
script × 2
proxy × 2
windows-registry × 2
windows-update × 2
automation × 2
sql-server × 2
visual-studio-code × 2
node.js × 2
windows-11 × 2
conemu × 2
installer × 2