Sunday, November 14, 2010

How to replace gnutar and gsed for Mac OS X

Install MacPorts

http://www.macports.org/

Install gnutar

sudo port install gnutar


Install gsed

sudo port install gsed


Replace tar and sed in Mac OS X


sudo mv /usr/bin/tar /usr/bin/darwintar
sudo ln -s /opt/local/bin/gnutar /usr/bin/tar

sudo mv /usr/bin/sed /usr/bin/darwinsed
sudo ln -s /opt/local/bin/gsed /usr/bin/sed


or you can build from source
http://prep.ai.mit.edu/pub/gnu/tar/tar-latest.tar.gz
http://prep.ai.mit.edu/pub/gnu/sed/sed-4.2.tar.gz
.
.
.

No comments: