1. 下载源代码 http://sourceforge.net/projects/astyle/files/
2. 解压
3. 编译
cd astyle/build/gccmake
sudo apt-get install astyle