7-zip OS X

1. Get the source

http://cznic.dl.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2

2. decompress it

cd ~/Downloads
tar zxf p7zip_9.20.1_src_all.tar.bz2

3. change dir to p7zip_9.20.1

cd p7zip_9.20.1

4. compile the code

cp makefile.macosx_64bits makefile.machine
make

5. copy it to your ~/bin directory

mkdir ~/bin
cp bin/7za ~/bin/7zip

6. add ~/bin to your $PATH

echo ‘export PATH=~/bin:$PATH” >> ~/.profile

7. that’s it