Questions tagged [homebrew]

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

Filter by
Sorted by
Tagged with
580
votes
8answers
530k 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.
379
votes
2answers
170k 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 ...
266
votes
12answers
404k 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 ...
182
votes
5answers
104k 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....
167
votes
5answers
96k 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 ...
166
votes
11answers
334k 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 ...
146
votes
14answers
148k views

How to use the Homebrew installed 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 ...
123
votes
5answers
87k 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/...
91
votes
7answers
153k 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 ...
86
votes
13answers
89k 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 ...
86
votes
4answers
27k 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 ...
83
votes
7answers
82k views

How do I install “R” on OS X using homebrew?

How do I install "R" on OS X? Ideally using Homebrew? There seems to be very little information online.
83
votes
6answers
217k 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 course ...
80
votes
8answers
139k views

Homebrew: Rollback from Python 3.7 to Python 3.6.5.x?

A brew upgrade upgraded my system Python to Python 3.7. Unfortunately, Python 3.7 breaks other software I need to use (including but not limited to Ansible). I imagine these problems will be worked ...
80
votes
5answers
58k 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 ...
68
votes
7answers
80k 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 ...
66
votes
6answers
124k views

How to install specific version of python on OS X

I need to install python3.4 on my OS X. Tried to do it with brew install python3 and now I have python 3.5.1. But I need py3.4. How can I install python3.4 on my Mac?
64
votes
3answers
40k 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 ...
59
votes
2answers
36k views

How to install and use GNU Grep in macOS

I have coreutils but I am not sure if GNU grep is there. I just want to use the flag -P for Perl regex that is found in GNU grep, but not in BSD grep. My PATH is /usr/local/opt/coreutils/libexec/...
52
votes
6answers
20k views

Homebrew: Your CLT does not support macOS 11.0

I recently upgraded to macOS Big Sur developer Beta 8, when I do brew install jenv I get the error Homebrew: Your CLT does not support macOS 11.0. I am using CommandLine tools GM version. Tried to ...
50
votes
3answers
39k 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.
46
votes
13answers
28k views

Is there any way to upgrade brew cask

Is there any way to upgrade all brew casks? Something like brew cask upgrade?
44
votes
9answers
121k 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 ...
43
votes
2answers
74k views

Is the “Cellar” folder only used for Homebrew?

Is the "Cellar" folder only used for Homebrew? If I am not using Homebrew, I can safely remove it?
42
votes
6answers
78k views

How To 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 ...
41
votes
8answers
21k views

Installing tmux but getting “dyld: Library not loaded Referenced from: /usr/”

I try to do brew install tmux it installs, but, probably due to previous failed and not fully removed non-brew attempts to install both it and libevent, when try to use tmux I get $ tmux dyld: ...
41
votes
1answer
30k views

How can I update everything installed through Homebrew after OSX upgrade? [duplicate]

After updating to 10.8 ‘Mountain Lion’ I’m wondering how I can rebuild everything I have installed through the packaging system Homebrew (similar to MacPorts) to ensure all dependencies are installed ...
41
votes
3answers
231k views

Remove and Reinstall Python on Mac — Can I trust these old references?

I'm new to the mac, and apparently I've made some sort of error. I've been learning python, via tutorials, and between Homebrew, Pip and XCode somehow my versions are all mixed. Pip3 points to ...
41
votes
4answers
24k 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 ...
39
votes
3answers
71k 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 ...
39
votes
8answers
23k 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 ...
35
votes
7answers
90k 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 ...
34
votes
2answers
41k views

How can I check the version of a package online before installing?

For example, when I run brew search octave I see: homebrew/science/octave Caskroom/cask/octave I don't know which of these to install so I want to check the version of these ...
33
votes
3answers
81k views

Installing Xcode Command Line Tools

I performed a fresh install of macOS Mojave 10.14. Immediately after that I installed Xcode Version 10.0 (10A255) from the Mac App Store. Now, I wish to install Homebrew which requires Xcode Command ...
32
votes
5answers
139k 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 4....
32
votes
2answers
20k 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 ...
32
votes
1answer
18k views

Why is `brew` extremely slow?

When I run brew --version, it took 30 seconds to return a response. Other brew commands are even slower. My CPU is ~ 90% idle. All other programs are running perfectly fine on my machine. I have the ...
30
votes
3answers
36k 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),...
30
votes
2answers
13k views

How to install an homebrew formula without updating homebrew itself?

When I install or reinstall a formula, homebrew automatically update itself before installing the formula. When working on a slow connection, this is annoying. How can I cancel this automatic update?
29
votes
7answers
72k views

Installed openvpn with brew but it doesn't appear to be installed correctly

I installed openvpn with brew. The installation went fine, no errors or missing dependencies. But now when I try to run it: users-MBP:~ user$ brew install openvpn Warning: openvpn-2.3.7 already ...
29
votes
3answers
64k views

Installed gcc with Homebrew, now how to use that gcc instead of clang?

I installed gcc with brew install gcc, but when I type gcc the default behavior is still to use clang. How do I set things so that typing gcc in the terminal automatically uses the gcc installed by ...
28
votes
3answers
45k 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 ...
28
votes
2answers
9k views

How does Homebrew no longer need ownership of /usr/local?

Today I ran brew update and after migrating the repository, it reported that it no longer needed ownership of /usr/local: $ brew update Updated Homebrew from 5371359 to 13f08a2. ... ==> Migrating ...
26
votes
3answers
24k 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 ...
26
votes
3answers
74k 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.
26
votes
2answers
24k 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 ...
25
votes
1answer
37k views

How do you install an older version of Postgres (9.6) using homebrew?

Homebrew's current version of Postgres is 10 when installed with: brew install postgres How do I install an older version of postgres? Specifically 9.6
25
votes
2answers
29k 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. ...
25
votes
2answers
12k views

How to use bash as default shell

I am running El Capitan 10.11.3 with bash version 3.x so I decided to update bash via: brew install bash Brew places the new bash under /usr/local/Cellar/bash: brew info bash bash: stable 4.3.42 (...
24
votes
4answers
49k views

How to install recent clang++ with Homebrew?

I've tried brew install llvm but after that I cannot find any clang++* executable under /usr/local. Thus my question: How to get clang++ via Homebrew?

1
2 3 4 5
22