Uninstall Homebrew

If your homebrew is completely messed up, it’s a good idea to remove everything and start off fresh:

Now you can reinstall with:

Switch between formula versions in Homebrew

When working with ROS on MacOS X and updating and upgrading your packages via Homebrew, you will often find your packages broken because some library was replaced by a newer one. A typical error looks like this:

Not too long ago, one would have just used brew versions and checked out the version needed, but that was long deprecated and has become unavailable recently. Nowadays, switch can be used instead:

Now you can easily switch back to r116 by:

Fix Homebrew .gitignore Permission denied

This morning when updating my brew, I was greeted by the following error:

This can be fixed by:

Write NTFS partitions with Mac OSX Mavericks

If just reading NTFS partitions is not enough and you really need to write them, this short HowTo is for you.

First install osxfuse:

Then install ntfs-3g

which might complain:
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink sbin/mkfs.ntfs
/usr/local/sbin is not writable.

This can be solved by chowning the directory:

Then backup the old and link in the new mount_ntfs file:

Voila, you should now be able to mount and write NTFS partitions. You may get a warning that the kernel extension is not from an identified developer but that doesn’t matter.