I love using MacPorts, and Chocolatey is the perfect alternative app.
But when I use Windows, I only install OS on C drive, so if I have any issue with Windows system, I just format my C drive. So, all my files are stored in D or E drive.
I installed Chocolatey, but the default drive is C.
C:\ProgramData\chocolatey
Plus, the default location for installing apps is C drive too. For example, ruby is installed on this location:
// Get Ruby from the repository
choco install ruby
// Then it installed in this location:
C:\tools\ruby213\bin;
Can I set default location to D drive?
With Chocolatey itself, it can, you just need to set the ChocolateyInstall Environmnent Variable:
If you have already installed (and want to change the location after the fact):
With apps it becomes a little tougher. Many apps point directly to C:\Program Files
. If you have moved that, then they should respect the new location.
With stuff like ruby, it uses Get-BinRoot
, when you can just add ChocolateyBinRoot
as an environment variable and it will point those things there.
You can use the following steps to create an Environment Variable:
System
Window should appear, click ```Advanced System Settings" linkSystem Properties
Window should appear, click Environment Variables
buttonValue
set to the path that you want to use