How do I set Chocolatey to install applications onto another drive?

前端 未结 8 914
半阙折子戏
半阙折子戏 2021-01-30 16:19

I\'ve installed Chocolatey, but I would like it to install programs to another drive instead of C. C is only a small SSD, but I have other drives where I usually install program

8条回答
  •  萌比男神i
    2021-01-30 16:46

    You could move the Chocolatey directory to another location then create a hard symbolic link from the default location - see The Complete Guide to Creating Symbolic Links (AKA Symlinks) on Windows.

    I.e. mklink /J C:/ProgramData/chocolatey D:/my/new/location

    But be sure to create the usual backups, restore points, etc. before doing anything.

提交回复
热议问题