System for installing command-line Unix applications and tools on OS X. Free and open-source.

learn more… | top users | synonyms (1)

154
votes
5answers
82k views

How to fix brew after OSX upgrade to Yosemite?

I faced some issue with Homebrew. I upgraded to Yosemite. After the upgrade, homebrew seems to be broken. I would run any brew command and get this error /usr/local/bin/brew: /usr/local/Library/brew....
138
votes
3answers
73k views

List of all packages installed using Homebrew

Is it possible to and how do I get a list of all the packages installed on my Mac using Homebrew? I am not interested in packages installed outside of Homebrew.
105
votes
4answers
54k views

What are pros and cons for MacPorts, Fink and Homebrew?

I'm just migrating from Ubuntu Linux to Mac, and everything is new and I'm re-learning a lot of stuff. On Linux I had the excellent apt-get to manage software packages. I googled for an alternative ...
83
votes
13answers
85k views

Write in NTFS using Mavericks [duplicate]

I was able to read and write NTFS filesystems normally in Mountain Lion, but after the upgrade this stopped to work. I installed ntfs-3g and fuse4x using homebrew in Mountain Lion and followed the ...
69
votes
8answers
77k views

How to properly update git on mac?

I have installed the newest version of git (1.8.3) using homebrew but when I type git --version in my terminal, it prints: git version 1.7.10.2 (Apple Git-33) What should I do to replace the old ...
67
votes
5answers
75k views

Are my permissions for /usr/local/ correct?

I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts). I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 ...
65
votes
4answers
19k views

Is it safe to upgrade Bash via Homebrew?

I'm new to OS X. I'm running OS X Lion on a MacBook Pro. Is it safe to upgrade the bash shell using Homebrew: $ brew install bash If safe, how do I make it the default instance of the shell I run ...
60
votes
7answers
45k views

How do I install “R” on OS X

How do I install "R" on OS X? Ideally using Homebrew? There seems to be very little information online.
59
votes
5answers
124k views

How do I install GCC via Homebrew?

I am using Homebrew exclusively (i.e. I don’t, and won’t, use MacPorts or Fink). I also want to keep manual installations to a bare minimum.1 … But how can I install GCC? First of all, I’ve of ...
57
votes
5answers
28k views

Homebrew permissions & multiple users needing to brew update

I'm using Homebrew to manage package installs on Lion (Lion Server actually but this shouldn't matter). Homebrew was installed under one user. Now a different user would like to add a package and ...
54
votes
8answers
62k views

How do I downgrade node or install a specific previous version using homebrew?

I'm using brew. I have node installed, using brew. I want to use an earlier version of node. Online, I find instructions such as, for example: cd /usr/local/Library/Formula brew remove node --force ...
51
votes
1answer
14k views

What is the difference between `brew` and `brew cask`?

So, what is the difference between brew and brew cask? I know that homebrew is a package management software. But what kind of software can I get there? Is it open source software and commercial ...
38
votes
3answers
18k views

Is there a quick way to relink my homebrew kegs?

I just upgraded my MacBook Air to Mavericks. The process appears to have removed almost all of the symlinks that homebrew put in /usr/local/bin. As I notice things missing then I relink them via ...
36
votes
6answers
79k views

Where can I find the installed package path via brew

I installed some packages via brew. But I can not find where they are. I can not get access by typing hping on terminal % brew install hping (git)-[master] Warning: hping-3.20051105 already ...
36
votes
4answers
20k views

MacPorts vs. Fink vs. Homebrew [duplicate]

I always used MacPorts to install and maintain my GCC compilers and other programs. Now I've heard about Fink and Homebrew. It seems these two utilities are gaining ground in the Mac community, but I ...
31
votes
2answers
10k views

Where does homebrew log?

Does homebrew keep logs, and if so where? I did a brew update which broke python support in macvim, and now I can't even get macvim to build. I'm hoping that there are some clues in the log.
29
votes
7answers
76k views

How to download the Command Line Tools for Xcode without the Downloads for Developers webpage?

I'm trying to install the Command Line Tools for Xcode so that I can use homebrew to install some packages I need for some rudimentary programming exercises; I would rather not install the entirety of ...
23
votes
3answers
26k views

How do I install MacVim?

How do I install MacVim on Mountain Lion? I want to get the MacVim application, as well as the new command-line vim. I see there are several ways to do it (a snapshot from Google Code, via Homebrew),...
20
votes
2answers
13k views

How to fix homebrew error: “invalid active developer path” after upgrade to OS X El Capitan?

I get this error when I run brew update: $ brew update xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/...
20
votes
5answers
9k views

Upgrading brew in El Capitan

I just upgraded to El Capitan, and when I tried updating brew I got the following error: $ brew update Error: The /usr/local directory is not writable. Even if this directory was writable when you ...
19
votes
4answers
21k views

How to know what packages are available with (home)brew?

I am new to Mac coming from Ubuntu Linux background. How do I find out what packages are available for Homebrew? With Ubuntu I could search packages.ubuntu.com for example, or Google since its using ...
18
votes
2answers
15k views

Amending PATH so that /usr/local/bin is ahead of /usr/bin

I'm trying to install brew but get the following warning: Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. ...
18
votes
4answers
23k views

Installing Xcode via command line

I am a Linux user and have never used OSX before. Someone asked me for help with installing some software on an OSX "Lion" server. I asked him to give me an SSH shell, assuming that would be ...
18
votes
2answers
9k views

Homebrew doctor warning: you have unlinked kegs in your Cellar

How do you fix this? $ brew doctor ... Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly ...
16
votes
6answers
6k views

Is there any way to upgrade brew cask

Is there any way to upgrade all brew casks? Something like brew cask upgrade?
16
votes
1answer
9k views

How to cleanly remove MacPorts

I'd like to cleanly remove all changes made by MacPorts as well as MacPorts itself, to try my luck with homebrew. How can I do that?
15
votes
2answers
47k views

How to cleanly remove Homebrew

How can I cleanly remove Homebrew. I might have a faulty older installation, and I'd like to have a fresh start.
14
votes
5answers
55k views

How to set gcc 4.8 as default gcc compiler

I recently installed gcc 4.8 using brew on OSX 10.7.5 (Lion). I can now compile using gcc 4.8 by using g++-4.8 some_file.c or using the default gcc 4.2 by using g++ some_file.c I want to use gcc ...
14
votes
1answer
3k views

Does Spotlight normally index links in ~/Applications?

I have installed MacVim through homebrew, and this resulted in an alias in ~/Applications that points to /usr/local/Cellar/macvim/7.3-66/MacVim.app. Unfortunately MacVim does not show up in Spotlight ...
14
votes
2answers
11k views

How should I fix my Homebrew installation after upgrading OS X?

Context My employer gave me a MacBook Pro for development work; however, most of the development work I do in my research group is for Linux platforms, and for a host of policy reasons, I can't ...
13
votes
1answer
5k views

Updating everything installed through Homebrew on Mountain Lion [closed]

After updating to 10.8 ‘Mountain Lion’ I’m wondering whether it would be vise to rebuild everything I have installed through the packaging system Homebrew (similar to MacPorts) to ensure all ...
13
votes
3answers
9k views

Make files in `/usr/local` writable for homebrew

I've been trying to get homebrew working nicely, but it appears everything inside /usr/local isn't writable, and everything falls over. It keeps telling me to recursively chown /usr/local, and I ...
13
votes
2answers
11k views

How to update some application to latest version with homebrew-cask?

I noticed some packages provided by homebrew-cask uses a url of the latest version and a version number of "latest" such as dropbox and chrome. Thus they will never be upgraded with brew upgrade. Is ...
12
votes
4answers
3k views

How to deal with commands of conflicting names listed in `brew doctor`?

So after brew doctorI`ll get the following without any recommendation: Warning: You have external commands with conflicting names. Found command `brew-cask` in following places: /usr/local/bin/brew-...
12
votes
3answers
17k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
12
votes
2answers
24k views

Is the “Cellar” folder only used for Homebrew?

So if I am not using Homebrew, I can safely remove it?
11
votes
1answer
3k views

Stuck on blue screen after running “rm *” in /

I accidentally executed rm * on / and since then I am unable to see my desktop. All I see is a blue screen with spinning gear. Irony is I somehow missed my OS and other CDs too that came with my Mac. ...
11
votes
1answer
5k views

Mencoder on Lion

Is there a way to install mencoder on Lion, preferrably using homebrew?
11
votes
1answer
18k views

How to restart PostgreSQL installed by Brew in OSX?

In Linux, it can be done by /etc/init.d/postgresql-9.2 restart. My OSX is not a server app. I think it it can be done by ALTER USER postgres with password '1234'; postgreQSL prompt but I am not ...
11
votes
6answers
4k views

How to figure out what is causing the ownership of /usr/local to change from my-username to root

I use homebrew as a package manager for certain web development app. To keep brew up-to-date I run update brew every couple of days and also run brew doctor. Usually, this is fine and brew tells me I'...
11
votes
4answers
3k views

Can't install inkscape on Yosemite with homebrew

It seems like I should be able to install inkscape with something like brew install inkscape based on what I've seen online. Unfortunately, when I try this I get Error: No available formula for ...
11
votes
1answer
5k views

how do I write a homebrew recipe?

What are the key features of a homebrew recipe? If I want to contribute a recipe, e.g. this one for udunits to the the hombrew-science repository, how would I convert a command-line script like this:...
10
votes
3answers
1k views

Where is a reasonable sed?

On Yosemite. The sed is old: does not understand \t for example. I installed coreutils and can not find any sed associated with same. What are my options here?
10
votes
3answers
10k views

Installing wine with homebrew

So, I am running a bit of a different install. Here's the background: I have installed wine before with MacPorts. Later, I decided to install homebrew. Then, wine didn't work so I tried brew install ...
10
votes
3answers
7k views

Git autocompletion is not working with homebrew

Here is my setup: brew install git bash-completion Warning: git-2.1.3 already installed Warning: bash-completion-1.3 already installed In .bash_profile: if [ -f $(brew --prefix)/etc/...
10
votes
3answers
6k views

Does installing Wireshark via homebrew provide a graphical interface?

I installed wireshark using homebrew with the command brew install wireshark. Everything seems to install fine and I can use dumpcap to capture packets but now I want to view them. Using a text editor ...
10
votes
2answers
6k views

What does “brew --HEAD” mean?

I've seen it mentioned several times to fix issues with some packages, that it installs newer versions of packages somehow. But I've been unable to find a clear explanation of what that option really ...
10
votes
2answers
2k views

Migrating from MacPorts to Homebrew. Is there any specific advice in how to minimize disruption?

I want to stop using macports, and use homebrew instead, I have been reading on their approach and it makes more sense to me. Now, I don't care much about having to reinstall my packages, even if some ...
9
votes
2answers
2k views

How can I add support for .flac files in SoX?

I want SoX to record audio in .flac files. When I do: rec -t flac ~/Desktop/myrec.flac …it gives the following error: rec FAIL formats: no handler for given file type `flac' I have installed SoX ...
9
votes
2answers
18k views

How do I force homebrew to update installed software?

I have pianobar installed and I'm trying to update it using brew update pianobar. I also tried brew update pianobar --force but that didn't have any effect. It says that I have local changes, but I'm ...