Questions tagged [homebrew]

`homebrew` is a package manager for Mac OS X, in the spirit of Linux's `apt` or `yum`.

Homebrew is a package manager for Mac OS X, in the spirit of Linux's apt or yum. It:

  • Maintains a list of available packages which can be installed, upgraded, and managed.
  • Installs packages from source, and thus requires Xcode be installed on the machine.
  • Automatically resolves dependencies if necessary.
  • Doesn't conflict with Mac OS X's built-in software.

Fink and MacPorts are projects with similar functionality.

503 questions
234
votes
3 answers

How can I remove outdated installed versions of Homebrew packages?

How can I remove outdated versions of Homebrew packages that are installed side-by-side with current versions?
aknuds1
  • 9,368
  • 6
  • 28
  • 27
149
votes
2 answers

How do you re-install a package with Homebrew (Mac)?

Struggling to find good Homebrew documentation (or tutorial)... In the mean time I need to reinstall ImageMagick that was installed with Homebrew (brew install imagemagick) and not sure if I should first brew uninstall imagemagick or go ahead and…
Meltemi
  • 6,807
  • 11
  • 30
  • 30
103
votes
11 answers

How should I set the PATH variable on my Mac so the Hombrew-installed tools are found?

Trying to set up Homebrew on a new Mac (on previous Macs I would install packages from source). The first package I tried to install was Git: $ brew install git Installation went OK, but which git still shows the one in /usr/bin/git that came along…
Meltemi
  • 6,807
  • 11
  • 30
  • 30
96
votes
11 answers

brew upgrade broke Vim on OS X (dyld: Library not loaded)

I've not run brew update && brew upgrade for a long time. I just did a massive upgrade which turned out to broke my Vim. This is what I got after running vim: dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.3.0.dylib Referenced from:…
Mateusz Piotrowski
  • 4,016
  • 4
  • 28
  • 53
92
votes
8 answers

"FATAL: lock file "postmaster.pid" already exists"

I just reinstalled postgres via brew install postgres I ran initdb /usr/local/var/postgres -E utf8 but got this: The files belonging to this database system will be owned by user "atal421". This user must also own the server process. The database…
AdamT
  • 1,083
  • 1
  • 9
  • 9
91
votes
6 answers

Is it safe to install both Homebrew and Macports on the same machine?

I have MacPorts installed on my iMac with a fair number of ports installed. I'm interested in trying out Homebrew, though, as I've heard many good things about it, and because I've noticed that it contains more up-to-date versions of several of the…
Rich
  • 2,220
  • 2
  • 18
  • 26
87
votes
3 answers

how can I uninstall using homebrew?

Can I uninstall something I installed via homebrew using homebrew?
user27449
  • 6,770
  • 22
  • 64
  • 86
86
votes
6 answers

How do I install ant on OS X Mavericks?

After upgrading to OS X 10.9 Mavericks, ant is no longer on my path. [126] 11:23:26 rkarl-mba-4:~/mobile-baselayer > ant zsh: permission denied: ant [126] 11:23:50 rkarl-mba-4:~/mobile-baselayer > which ant ant not found I tried installing through…
Robert Karl
  • 968
  • 1
  • 6
  • 9
78
votes
6 answers

How do I restart redis that I installed with brew?

I used brew to install redis (a key/value store database server) for my node.js app. brew install redis However, it seems to disappear and is very volatile. Because I'm using redis as my session store, I need to be able to quickly restart it on my…
chovy
  • 1,165
  • 1
  • 8
  • 15
77
votes
7 answers

Can I install Homebrew without sudo privileges?

Homebrew nicely allows package installations without sudo privileges, but it seems that I need admin privileges to install Homebrew itself. I'd like to install Homebrew in a Mac environment where I don't have sudo or admin privileges. Is this…
BenjaminGolder
  • 967
  • 2
  • 8
  • 13
77
votes
2 answers

How can Homebrew print a beer mug in Terminal?

Homebrew has a neat trick of printing out little icons next to its output. Like this: If I copy paste the icon it on its own and hit enter I get the result: -bash: $'?\237\215?': command not found And if I try it with echo or printf I just get…
stib
  • 4,269
  • 6
  • 27
  • 38
76
votes
9 answers

How to install Meld with Homebrew on Mac OSX?

To install meld on Mac OSX I try to run: brew install meld but I got the following error: Error: No available formula for meld What is the right way to install meld?
Misha Moroshko
  • 7,423
  • 9
  • 26
  • 31
76
votes
2 answers

How to clean unused homebrew dependencies

How to remove all homebrew packages wich are not used by any other package? Some packages are installed as dependency of other package. When packages are removed, dependent packages stay as leftovers. apt support the autoremove command for example.…
dre-hh
  • 1,423
  • 1
  • 7
  • 10
74
votes
8 answers

Mac Homebrew and Wireshark

I've installed Wireshark(.org) using Homebrew. brew install wireshark at the end the script says ==> ./configure --prefix=/usr/local/Cellar/wireshark/1.2.7 --disable-dependency-tracking --disable-wireshark ==> make ==> make install ==> Caveats We…
miku8
  • 841
  • 1
  • 6
  • 3
73
votes
6 answers

Where can I find a list of all formulas available for homebrew?

Is there a way to get a list of all formulas (packages) I can install using homebrew for Mac OS X?
BetaRide
  • 2,359
  • 5
  • 40
  • 47
1
2 3
33 34