Chocolate Installer For Windows
Get started with Docker on Windows using Chocolatey 16 January 2016 on Docker, Windows, Chocolatey The Docker tools are useful on a Windows machine to build and run applications in Linux containers locally in a VM or in the cloud. Hi, I like one-get. I've been using it for a number of things, but there are some things that make it less than useful. It looks like the way for an end user to quickly install well known software.
I am looking to find out the current Chocolatey installation path using PowerShell.
2 Answers
There is an environment variable set on installation, ChocolateyInstall
, which is set to C:Chocolatey
by default in versions of Chocolatey less than 0.9.8.27. After that, this defaults to C:ProgramDataChocolatey
.
NOTE: By default, the C:ProgramData
folder on Windows is hidden. You will either need to enable hidden files and folders through Folder Options View
or you can navigate directly to the path shown above by copy/pasting directly into the Windows Explorer address bar.
In version 0.9.9 of Chocolatey, it actively moves from the old folder location to the new one.
You can also pre-emptively create this environment variable before installing Chocolatey to control where it gets installed if required.
When you install Chocolatey they add the Chocolatey /bin
path to your path variable.
In PowerShell:
I'm a wizard at Linux/Unix-based OSes, but I'm rubbish at Windows and the like. To be able to install package via a CLI, which I prefer to graphical installers, I installed Chocolatey onto my Windows XP SP3 system. Wishing to install the Elixir programming language, which I favour to some others, I run cinst elixir
. It succeeded to install Erlang (a dependency for Elixir), but then failed to install Elixir itself. The console error message is as follows:
A pastebin of the log file can be found here.
As I've never used this tool before, I need to know - what am I doing wrong?
1 Answer
Technically it passes installing Elixir - note the lovely green ball in the image:
Chocolate Installer For Windows 10
The green ball is also a link. Follow this Gist link to see the install results. I also just ran it while writing this answer. It installs just fine on supported Windows versions.
Chocolate Installer For Windows 10 64 Bit
Two things are at play here (well, really just one thing):
- Windows XP. Technically Chocolatey is not supported on Windows XP (Microsoft released it over 14 years ago and ended support for it April 2014). Perhaps we need to officially state that somewhere (I looked around and while we've stated it before, I don't technically see it in our documentation).
- Downloading from GitHub requires better ciphers. It's not Chocolatey failing, it's likely the ciphers built-in to Windows XP not allowing it to download Elixir. I see Elixir downloads from GitHub, so it's quite likely that's why it doesn't work for you. Choco does attempt to fallback to SSL v3 when TLS fails, however the fallback likely doesn't even work because GitHub may have disabled that due to POODLE (the article is from CloudFlare, but it is a great explanation). See Windows support for SSL/TLS and GitHub's article disabling Windows XP and recommending upgrade to newer versions of Windows.
Also, another thing worth mentioning - Chocolatey has more detailed logs. If you don’t want to go grab the log file, you can also use -dv
in your switches and just copy the screen output. Should you want to use a GUI interface in Windows, we also have ChocolateyGUI.
I'd highly recommend you upgrade to a newer and more secure Windows OS. Everything at and beyond Windows 7/Windows 2008 is a much better OS than Windows XP/2003. You can't go wrong in Windows 7 or Windows 10. Windows 8, well… That’s another story for another day.
Should you decide not to upgrade for now, you can likely install Chrome/Firefox and download and manually install Elixir from GitHub.