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://i-blog.csdnimg.cn/blog_migrate/a3a6ba1fda048980866dbb268b0176c2.png)
8、查看所有可用的cheat命令
cheat -l
![](https://i-blog.csdnimg.cn/blog_migrate/166f009c1b3d416cf643401c61cb426d.png)
9、使用cheat
cheat tar
![](https://i-blog.csdnimg.cn/blog_migrate/a68ec51f6084725bb0d3f202728610aa.png)
cheat zip
![](https://i-blog.csdnimg.cn/blog_migrate/ee88d5214cdff68d49af29cc96a95734.png)