1、安装python
yum -y install python
2、安装epel源、安装pip
yum install epel-release -y
yum install python-pip -y
3、安装git
yum -y install git
4、安装Python依赖的文件
pip install docopt pygments
5、从github克隆项目到本地
cd /usr/local/src
git clone https://github.com/chrisallenlane/cheat.git
6、切换到cheat目录,安装cheat
cd cheat
python setup.py install
7、查看版本号
cheat -v
![](https://images2015.cnblogs.com/blog/35158/201609/35158-20160921092055434-576954562.png)
8、查看所有可用的cheat命令
cheat -l
![](https://images2015.cnblogs.com/blog/35158/201609/35158-20160921092056309-1853731366.png)
9、使用cheat
cheat tar
![](https://images2015.cnblogs.com/blog/35158/201609/35158-20160921092056871-1085646227.png)
cheat zip
![](https://images2015.cnblogs.com/blog/35158/201609/35158-20160921092057199-1556728227.png)