Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
$ brew link binutils

Linking /usr/local/Cellar/binutils/2.24... Warning: Could not link binutils. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/binutils/2.24/share/info/
Target /usr/local/share/info/ already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
  brew link --overwrite formula_name

As I see I can not link binutils because there is file in my filesystem. I am just wondering if there is any way to know which of installed home-brew formulas had installed this file ?

share|improve this question
Could you provide us the content of file ? – Thomas Ayoub Mar 21 '14 at 10:15
I know that it is a gdb's file ( -> ../../Cellar/gdb/7.7/share/info/ But I am searching general way of solving this problems. – demas Mar 21 '14 at 10:26
up vote 1 down vote accepted

If the file was installed by Homebrew, it is a symlink to a file in /usr/local/Cellar/:

$ ls -l /usr/local/share/info/
lrwxr-xr-x  1 admin  wheel  45 Mar 15 15:25 /usr/local/share/info/ -> ../../Cellar/bash/4.2.45/share/info/

It's also possible that the file was not installed by Homebrew. /usr/local/ is often the default installation target in makefiles, and it is also used by installers and by other package managers like pip.

share|improve this answer

Your Answer


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.