Install Wireshark on MacOS X via brew [closed]
Solution 1:
The homebrew package wireshark
installs the command line util tshark
. If you want to enable the GUI, then install wireshark like this:
brew install wireshark --with-qt
If you already have Wireshark installed, do
brew reinstall wireshark --with-qt
Solution 2:
I suggest using cask
to create the .app
binary in your /Applications
folder (use reinstall
if already installed):
brew install --cask wireshark
The advantage of this approach over brew install wireshark --with-qt
is that more features are enabled without spending a lot of time compiling.
This is also the recommended approach for graphical applications and will use the official, feature-complete builds as distributed by the Wireshark developers.
Solution 3:
I don't think the command brew install wireshark --with-qt
works anymore as of July 2019 on my laptop running macOS Mojave. So my approach to install Wireshark using Homebrew is to follow the below steps:
- Update Homebrew: `brew update'
- Tap the Caskroom/Cask GitHub repository using HTTPS:
brew tap caskroom/cask
- Search all known casks for
wireshark
:brew search wireshark
- Find out info about the
wireshark
cask (to be sure):brew info --cask wireshark
- Install the
wireshark
cask:brew install --cask wireshark
- Clean up (just in case):
brew cleanup
If all goes well, one should see 🍺 wireshark was successfully installed!
after Step 5.