Press "Enter" to skip to content

Install Pgrep and PKill for Mac OS X with Brew

My fingers still tend to do ps ax | grep some_program_name_I_want_to_kill and then do a kill 2012 to kill that process. Then I remember that I could use pgrep and/or pkill to do the same kind of thing. But then I remember I’m on a Mac which doesn’t have those commands built in, though most other *nix platforms do.

So I usually would try to use Homebrew to install it: brew install pgrep

only to get: Error: No available formula for pgrep

After a bit of googling I find again that its: brew install proctools