I am running out of space on my laptop, and I was wondering if it would be possible to change the default directory of installing casks on an external hard drive so that I can use the internal hard drive just for the OS and important files.
Asked
Active
Viewed 1,390 times
1 Answers
1
I guess you can overwrite the environment variable HOMEBREW_CASK_OPTS
or you can use the --appdir=/my/path
option. You can get more information with the command man brew-cask
and there is a nice markdown documentation in the cask repository. Otherwise the executables can be found in the Applications
folder.
EDIT:
Sometimes it helps to run a cleanup to delete the old versions:
brew cleanup
brew cask cleanup

flaxel
- 4,173
- 4
- 17
- 30
-
How would I be able to overwrite `HOMEBREW_CASK_OPTS`? – LeviticusNelson Aug 26 '20 at 20:35
-
You can set the varibale in your `~/.bash_profile` or `~/.zshenv` file. – flaxel Aug 26 '20 at 20:39
-
I used `nano ~/.bash_profile` to add the line that it says in the documentation, but now it creates a new folder when I reinstall instead of putting the casks in the external hard drive. – LeviticusNelson Aug 26 '20 at 21:07
-
Which path did you use? Where is the new folder? Have you looked at the other possibilities with man brew-cask? With the option `HOMEBREW_CASK_OPTS` you only change the folder of the executable file. – flaxel Aug 26 '20 at 21:14
-
Nvm I had to change my external hard drive name to make it easier for the program to minimize reading errors – LeviticusNelson Aug 26 '20 at 21:18