Here is a step by step instructions on how to run an MTR on MacOS X
- Sometimes we ask our clients when they are having connection problems to our server to run an MTR test for us.
- The MTR tool does not come pre-installed on Mac OS X devices and is not available in the Apple store. To Install it we will first install Homebrew. Installing Homebrew will allow us to install libraries and utilities not available in a default installation:
Users running macOS High Sierra, Sierra, El Capitan, or earlier, run:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Users running Catalina, Mojave, or Big Sur, run:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Now that homebrew is installed, we can start by installing mtr with the following command
brew install mtr
- Brew will install it to the location
/usr/local/Cellar/mtr/
lets change directory into this location withcd /usr/local/Cellar/mtr/
- Now that we’re in this directory we need to see the version, lets list it with
ls
- Lets assume it’s the latest MTR that would be 0.95 so we will run the following command:
cp /usr/local/Cellar/mtr/0.95/sbin / /usr/local/bin/
if any permission error follows use sudo - Now MTR is installed on your Mac, and you can enter in your terminal
mtr orangewebsite.com