2

How do I install ss on OS X? I couldn't find the iproute package in homebrew.

Red Hat recommends ss over netstat in Red Hat Enterprise Linux 7. ss is provided by the iproute package.

Red Hat Docs

  • 3
    If you don't get a good answer for your needs - please edit the question to describe the function you need ss to perform. There is likely a tool on OS X that ships natively to get you what you actually need. – bmike Feb 28 '15 at 15:52
  • Is there a reason you can't use netstat for your purpose? It comes with OS X as far as I know. – Tom Gewecke Feb 28 '15 at 18:47
  • Given that ifconfig is deprecated and will be removed from most Linux distribution defaults, it makes sense that someone would want the ip commands to enforce good habits. brew install iproute2mac as suggested at superuser.com/a/898971/457084 gets you closer – Ben Creasy Jul 30 '17 at 16:43
  • Possible duplicate of What is the equivalent of netstat -tln on OS X? – slm Aug 8 '18 at 17:44
-1

In order to get ss, you would need to get the source code for iproute. Since you mention Red Hat linux, go onto a linux machine running Red Hat, and run the following command:

sudo yum source iproute

Now, copy over the source code to your Mac, and compile it.

You could also go on the Red Hat packages site and get the source tarball.

Note: I have not tested this, but this is the normal way to get source code.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .