Re:Homebrew: OS X’s Missing Package Manager
by graywh on Wednesday February 03, 2010 @09:56AM
(#1097823)
I also like how he gets it wrong--using sudo means you use your own password, not root's.
Re:Homebrew: OS X’s Missing Package Manager
by dazmax on Tuesday February 02, 2010 @09:07PM
(#1096856)
The readme also says:
You don't have to sudo
It's up to you
Re:Homebrew: OS X’s Missing Package Manager
by telemachos on Tuesday February 02, 2010 @09:13PM
(#1096868)
Sigh. Please try to read in context and not score debating points.
I didn't say that the README insists on not using sudo. I was responding to a claim that the Engine Yard blogger made up the method of reassigning /usr/local to a regular user. That's simply not true.
But… don't sudo!
Homebrew can be used with or without sudo, but, OS X was designed to minimise sudo use, you only need it occasionally. For example, as long as your user is in the admin group, this just works:
cpan -i MP3::Info
Using sudo all the time is annoying, but far worse — it conditions you to type in your root password without thinking about it. Homebrew compliments OS X so you are unlikely to install anything that really needs to be chown:root. Let this be your last sudo for some time:
sudo chown -R `whoami` /usr/local
NOTE: If you already installed, eg. MySQL into /usr/local then the recursive chown may break it. Fixing MySQL should be as simple as:
sudo chown -R mysql:mysql /usr/local/mysql
Also 'inane blogspam' seems a bit much, no?