Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What directory does chocolatey install commands to?

Tags:

chocolatey

I've successfully done choco install python2 and choco install python3 but I can't see the result on cmd.exe (yes, I reopened non-administrator cmd.exe).

Where does chocolatey install commands to? I'll fix my PATH env-var when I can work out what should be there.

Choclatey's FAQ does not include an answer to this question. I'm more used to homebrew (Mac), and the answer for that is /usr/local/bin/

like image 740
paul_h Avatar asked Apr 05 '16 14:04

paul_h


People also ask

Where does Chocolatey install files to?

NOTICE: As of 0.9. 8.24, Chocolatey's default install location is C:\ProgramData\Chocolatey. This reduces the attack surface on a local installation of Chocolatey and limits who can make changes to the directory. You can install Chocolatey to Program Files if you feel that is a more appropriate place.

How do you check Chocolatey is installed?

To verify that Chocolatey is installed, we will use the choco command. C:\WINDOWS\system32>choco Chocolatey v0. 10.15 Please run 'choco -? ' or 'choco -?


1 Answers

The answer is, it depends :-)

Most package contents will be installed to the chocolatey directory, which you can find at C:\ProgramData\chocolatey\lib. For example, in the case of python3 you will find the exe in C:\ProgramData\chocolatey\lib\python3\tools.

In addition, you will find a shim exe located at C:\ProgramData\chocolatey\bin for python. This location is already contained within your path, so you should already have access to it without making any other changes.

like image 58
Gary Ewan Park Avatar answered Sep 20 '22 10:09

Gary Ewan Park