brew update
Updates the Homebrew installation. If there are any errors, they should be reported by brew doctor
. Try fixing them else, you could use the uninstall script as follows:
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
/usr/bin/which -s git || abort "brew install git first!"
test -d /usr/local/.git || abort "brew update first!"
cd `brew --prefix`
git checkout master
git ls-files -z | pbcopy
rm -rf Cellar
bin/brew prune
pbpaste | xargs -0 rm
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
test -d Library/LinkedKegs && rm -r Library/LinkedKegs
rmdir -p bin Library share/man/man1 2> /dev/null
rm -rf .git
rm -rf ~/Library/Caches/Homebrew
rm -rf ~/Library/Logs/Homebrew
rm -rf /Library/Caches/Homebrew
And install homebrew again. Am pretty sure all this is configurable using puppet.
I see a few issues from what you posted.
error: unable to unlink old 'Library/Homebrew/test/mach/a.out' (Permission denied)
It seems to me you have a permissions issue perhaps from the leftover previous installation of Homebrew. You should remove all traces of the previous installation before you reinstall.
And Homebrew doesn't want to be installed as root
Why on earth would you want to install homebrew as root? The whole point of the project is to keep homebrew in /usr/local
so that you don't need sudo.
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew.
You should also ensure MacPorts is uninstalled and that you've uninstalled Fink. They could cause issues with software installed by homebrew.
Warning: An outdated version of Git was detected in your PATH.
Git 1.7.10 or newer is required to perform checkouts over HTTPS from GitHub.
This indicates to me that you still have an old version of Git in your PATH, probably installed with another package manager. OS X Mavericks comes with Git version 1.8.5.1
What is the result of the whereis git
command from the Terminal? usr/bin/git
is the OS X install of Git.
Follow the guides to completely remove previous MacPorts or Fink installs and ensure the old directories are removed from your PATH variable.
PS.
I'll be sad if I can't use Mac OS X as a hacker's Unix
That would make me sad too. :(
I find homebrew invaluable and easy to work with. In summary, it seems you just have old software installed (and perhaps extraneous directories in your PATH) and need to clear it out, check your permissions, and reinstall homebrew from scratch.
Best Answer
Type
brew options wireshark
to show the options provided with wireshark.To install Wireshark with the UI :
If you've already installed, you can use the
reinstall
command instead. This should only download the required qt dependencies.