user3848207
user3848207

Reputation: 4917

How to find out the location of files of a package installed by chocolatey?

I would like to find out the location of the files of a package installed by a chocolatey. It seems the installation location is not consistent.

Suppose I run choco install pycharm. Is there a choco command to find out the files installed by this package?

I am using Windows 10.

Upvotes: 4

Views: 6770

Answers (2)

Artem
Artem

Reputation: 325

The path where the package is installed can be found in Windows Environment Variables ChocolateyToolsLocation => Path

Upvotes: 1

Gary Ewan Park
Gary Ewan Park

Reputation: 18981

There isn't a Chocolatey command that can help with this no.

During installation of an application, via the Chocolatey package, Chocolatey will attempt to find the installation location of the application, based on the entries made into the registry, or other locations. Due to the way that some Windows installers work, or how they have been written, this information isn't always available.

That is why sometimes Chocolatey will be able to write out the installation location after installation is complete, and others not.

Assuming that pycharm installs as an executable, which is available on the path (full disclosure, I have never used pycharm), you should be able to do something like the following in PowerShell session:

&where.exe pycharm

And that will list out where the main exe is located.

Upvotes: 8

Related Questions