Created
December 4, 2011 23:51
-
-
Save 19h/1431694 to your computer and use it in GitHub Desktop.
Quick-Upgrade LSOF 4.85 for OSX 10.5+ including Lion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.85.tar.gz | |
tar xfv lsof_4.85.tar.gz | |
cd lsof_4.85 | |
tar xfv lsof_4.85_src.tar ; cd .. | |
cd lsof_4.85; cd lsof_4.85_src; ./configure darwin; make; sudo make all | |
sudo rm /usr//sbin/lsof; sudo cp ./lsof /usr//sbin/lsof | |
cd ..; cd ..; rm -rf lsof_4.85* | |
clear; echo "Installed lsof 4.85 for OSX 5+." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment