Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Homebrew Cache

I am using MacintheCloud paytogo plan.

I try to install vs-mda-remote tools with this tutorial.

Tutorial MSDN

It says i need no admin access.

Now it comes to some errors installing homebrew dependecies. A few i could sort out with adding folder manually.

Now i facing the error Permission Denied /Library/Caches/Homebrew/Formula.

I know i can change this Path to some Folder where i have the rights, but how do i do this?

Couldn't find any helps to do this.

Thanks.

like image 445
Markus_DE_HH Avatar asked Feb 12 '23 08:02

Markus_DE_HH


1 Answers

You can override the cache directory with the environment variable HOMEBREW_CACHE. See the brew man page.

like image 199
Peter Eisentraut Avatar answered Feb 16 '23 03:02

Peter Eisentraut