1. Download from inet.omnetpp.org
2. extract *.gz file onto you workspace directory – if use IDE
3. Go to your inet parent directory
4. Run this cmd :
$ make makefiles
$ make
You are done,
If you not set your environment, u might get some error. So please set it as follow
$ export PATH=$PATH:$HOME/omnetpp-4.2.2/bin