Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm trying to use Homebrew to install wget, but something is happening where the download is always corrupt. This happens for all packages, not just wget. I can download the tar.gz fine through a browser. Can I use Homebrew to install a locally downloaded archive? Something such as:

brew install wget-1.14.tar.gz 
share|improve this question
1  
Seems very odd. I don't know of you can do that but it sounds like something more serious is happening. Have you tried running brew doctor? – boyfarrell Mar 6 at 2:45 via SOStacked
If you have the exact archive that Homebrew's expecting, you can put it in ~/Library/Caches/Homebrew and then try brew install. But this is mysterious. How about posting the output of brew install when you try it the normal way? – echristopherson Mar 6 at 2:48
@echristopherson Your method worked. If you post it as an answer, I'll accept it. – MD6380 Mar 7 at 17:34
I know why it doesn't work. Brew doctor doesn't show any issues. It looks like the HTTP proxy being used isn't allowing the download. – MD6380 Mar 7 at 17:35

1 Answer

up vote 1 down vote accepted

If you have the exact archive that Homebrew's expecting (i.e. same file name and same contents, as determined by SHA1 or whatever hash type the formula uses), you can put it in ~/Library/Caches/Homebrew and then try brew install.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.