Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find where homebrew temporarily saves dependencies being downloaded

Tags:

I'm installing wkhtmltopdf on my Mac using homebrew install wkhtmltopdf so it would go on like this: Installing wkhtmltopdf dependency: qt. For some reason, my internet connection causes the download of a 200+mb file (Downloading http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz) to only go at 4KB/s so I just copied my friend's version of the tar file. My OS version is Mavericks and QT does not support it yet so installing it separately will not work (already tried it).

How would I be able to just copy the tar file and place it wherever brew stores temporary files or whatsoever, so that brew won't need to download it anymore? Specifically, where can I place the tar.gz file?

like image 801
bonbon.langes Avatar asked Apr 24 '14 15:04

bonbon.langes


People also ask

Where does BREW download files Mac?

By default, Homebrew will install all packages in the directory /usr/local/Cellar/ , and also creates symbolic links at /usr/local/opt/ and /usr/local/bin/ (for executable files).

Where is brew cache?

The cache path is ~/Library/Caches/Homebrew/ . To enable caching of brew installers: Open your app on Bitrise.


1 Answers

Homebrew stores downloaded files in either ~/Library/Caches/Homebrew or /Library/Caches/Homebrew (the former if it exists and the latter if the former doesn't). If you've already used Homebrew, check those locations and see which one exists, and drop the tar file you downloaded in that directory.

like image 77
mipadi Avatar answered Oct 05 '22 08:10

mipadi