从 github 上下载
[root@Betty GIT]# git clone https://github.com/chrisallenlane/cheat.git
[root@Betty GIT]# cd cheat/
[root@Betty cheat]#
[root@Betty cheat]# ll
总用量 32
drwxr-xr-x 2 root root 4096 3月 24 13:25 bin
-rw-r--r-- 1 root root 21 3月 24 13:25 CHANGELOG
drwxr-xr-x 5 root root 4096 3月 24 13:25 cheat
-rw-r--r-- 1 root root 668 3月 24 13:25 CONTRIBUTING.md
-rw-r--r-- 1 root root 120 3月 24 13:25 LICENSE
drwxr-xr-x 2 root root 4096 3月 24 13:25 licenses
-rw-r--r-- 1 root root 3546 3月 24 13:25 README.md
-rw-r--r-- 1 root root 891 3月 24 13:25 setup.py
[root@Betty cheat]#
安装,从安装过程的打印信息中可以看出 cheatsheets 中包含了哪些 Linux 命令 [root@Betty cheat]# python setup.py install
/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/cheat
copying cheat/sheet.py -> build/lib/cheat
copying cheat/sheets.py -> build/lib/cheat
copying cheat/utils.py -> build/lib/cheat
copying cheat/__init__.py -> build/lib/cheat
creating build/lib/cheat/cheatsheets
copying cheat/cheatsheets/__init__.py -> build/lib/cheat/cheatsheets
creating build/lib/cheat/test
copying cheat/test/__init__.py -> build/lib/cheat/test
copying cheat/cheatsheets/aptitude -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/bash -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ping -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/readline -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/du -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/split -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/csplit -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/systemd -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ss -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sort -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/stdout -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/indent -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/iptables -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/netstat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/grep -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gdb -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ssh-copy-id -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/git -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/journalctl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gcc -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ncat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tcpdump -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/youtube-dl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/yum -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/asciiart -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/numfmt -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dd -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/xargs -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ls -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/php -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rsync -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tr -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nmcli -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/pacman -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/notify-send -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ssh -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/markdown -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gpg -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/asterisk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tee -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/irssi -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/iwconfig -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/crontab -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/jrnl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/lib -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rss2email -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/udisksctl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/at -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/diff -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/cups -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sockstat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ps -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/snmpwalk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gzip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/7z -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/zoneadm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/python -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sqlmap -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/lsof -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mkdir -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apt-cache -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/xrandr -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/p4 -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/awk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tar -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mdadm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/uniq -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/unzip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tree -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nc -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rpm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/weechat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/jq -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/lvm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/more -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ssh-keygen -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/hardware-info -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nkf -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/pip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dpkg -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/strace -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/top -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/vim -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/uname -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/shred -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/pdftk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/wget -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ab -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sed -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/date -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/od -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/less -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nmap -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rename -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/emacs -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/openssl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/distcc -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gs -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/history -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mysqldump -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ifconfig -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/systemctl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/chmod -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/scp -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/smbclient -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dhclient -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/zip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mount -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apparmor -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/truncate -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ffmpeg -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mysql -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/find -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/screen -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ntp -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/convert -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/man -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/paste -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sam2p -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tail -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/vagrant -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apt-get -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/head -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ln -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apt -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tmux -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/docker -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/route -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/chown -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/yaourt -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/http -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nova -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ping6 -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/bower -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/hub -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dnf -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/cut -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/for -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/curl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/df -> build/lib/cheat/cheatsheets
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/cheat -> build/scripts-2.7
changing mode of build/scripts-2.7/cheat from 644 to 755
running install_lib
creating /usr/local/lib/python2.7/site-packages/cheat
copying build/lib/cheat/sheet.py -> /usr/local/lib/python2.7/site-packages/cheat
copying build/lib/cheat/sheets.py -> /usr/local/lib/python2.7/site-packages/cheat
copying build/lib/cheat/utils.py -> /usr/local/lib/python2.7/site-packages/cheat
creating /usr/local/lib/python2.7/site-packages/cheat/test
copying build/lib/cheat/test/__init__.py -> /usr/local/lib/python2.7/site-packages/cheat/test
creating /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/aptitude -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/bash -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ping -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/readline -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/du -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/split -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/csplit -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/systemd -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ss -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sort -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/stdout -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/indent -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/iptables -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/netstat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/grep -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gdb -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ssh-copy-id -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/git -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/journalctl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gcc -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ncat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tcpdump -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/youtube-dl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/yum -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/asciiart -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/numfmt -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dd -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/xargs -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ls -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/php -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rsync -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tr -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nmcli -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/pacman -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/notify-send -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ssh -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/markdown -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gpg -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/asterisk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tee -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/irssi -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/iwconfig -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/crontab -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/jrnl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/lib -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rss2email -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/udisksctl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/at -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/diff -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/cups -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sockstat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ps -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/snmpwalk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gzip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/7z -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/zoneadm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/python -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sqlmap -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/lsof -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mkdir -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apt-cache -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/xrandr -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/p4 -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/awk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tar -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mdadm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/uniq -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/unzip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tree -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nc -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rpm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/weechat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/jq -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/lvm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/more -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ssh-keygen -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/hardware-info -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nkf -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/pip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dpkg -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/strace -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/top -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/vim -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/uname -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/shred -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/pdftk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/wget -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ab -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sed -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/date -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/od -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/less -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nmap -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rename -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/emacs -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/openssl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/distcc -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gs -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/history -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/__init__.py -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mysqldump -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ifconfig -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/systemctl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/chmod -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/scp -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/smbclient -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dhclient -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/zip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mount -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apparmor -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/truncate -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ffmpeg -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mysql -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/find -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/screen -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ntp -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/convert -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/man -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/paste -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sam2p -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tail -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/vagrant -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apt-get -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/head -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ln -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apt -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tmux -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/docker -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/route -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/chown -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/yaourt -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/http -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nova -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ping6 -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/bower -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/hub -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dnf -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/cut -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/for -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/curl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/df -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/__init__.py -> /usr/local/lib/python2.7/site-packages/cheat
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/sheet.py to sheet.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/sheets.py to sheets.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/utils.py to utils.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/test/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/cheatsheets/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/__init__.py to __init__.pyc
running install_scripts
copying build/scripts-2.7/cheat -> /usr/local/bin
changing mode of /usr/local/bin/cheat to 755
running install_egg_info
Writing /usr/local/lib/python2.7/site-packages/cheat-2.1.22-py2.7.egg-info
[root@Betty cheat]#
发现缺少 docopt 模块
[root@Betty cheat]# cheat tar
Traceback (most recent call last):
File "/usr/local/bin/cheat", line 36, in <module>
from docopt import docopt
ImportError: No module named docopt
[root@Betty cheat]#
[root@Betty cheat]#
[root@Betty cheat]# which pip
/usr/local/bin/pip
[root@Betty cheat]#
通过 pip 安装 docopt 时,发现又缺少 pkg_resources
[root@Betty cheat]#
[root@Betty cheat]# pip install docopt
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
[root@Betty cheat]#
通过 pip 安装 pkg_resources 时,发现出现“死循环”依赖~~(我起的名字)
[root@Betty cheat]#
[root@Betty cheat]# pip install pkg_resources
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
[root@Betty cheat]#
查阅网上信息,大概怀疑是由于环境中相关工具集过老导致。 通过 wget 下载 ez_setup.py 并调用 python 执行(会自动下载 setuptools)
[root@Betty cheat]#
[root@Betty cheat]# wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
--2016-03-24 13:35:06-- https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
正在解析主机 bitbucket.org... 104.192.143.2, 104.192.143.3, 104.192.143.1
正在连接 bitbucket.org|104.192.143.2|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:12059 (12K) [text/plain]
正在保存至: “STDOUT”
100%[=====================================================================================================================================================================>] 12,059 --.-K/s in 0s
2016-03-24 13:35:13 (808 MB/s) - 已写入标准输出 [12059/12059]
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-20.3.1.zip
Extracting in /tmp/tmpJKRVSK
Now working in /tmp/tmpJKRVSK/setuptools-20.3.1
Installing Setuptools
running install
running bdist_egg
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.py' under directory '_markerlib'
warning: no files found matching '*' under directory 'setuptools/_vendor'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
copying easy_install.py -> build/lib
creating build/lib/pkg_resources
copying pkg_resources/__init__.py -> build/lib/pkg_resources
creating build/lib/setuptools
copying setuptools/py26compat.py -> build/lib/setuptools
copying setuptools/archive_util.py -> build/lib/setuptools
copying setuptools/extension.py -> build/lib/setuptools
copying setuptools/package_index.py -> build/lib/setuptools
copying setuptools/py27compat.py -> build/lib/setuptools
copying setuptools/dist.py -> build/lib/setuptools
copying setuptools/ssl_support.py -> build/lib/setuptools
copying setuptools/msvc9_support.py -> build/lib/setuptools
copying setuptools/utils.py -> build/lib/setuptools
copying setuptools/site-patch.py -> build/lib/setuptools
copying setuptools/py31compat.py -> build/lib/setuptools
copying setuptools/depends.py -> build/lib/setuptools
copying setuptools/lib2to3_ex.py -> build/lib/setuptools
copying setuptools/__init__.py -> build/lib/setuptools
copying setuptools/sandbox.py -> build/lib/setuptools
copying setuptools/launch.py -> build/lib/setuptools
copying setuptools/windows_support.py -> build/lib/setuptools
copying setuptools/version.py -> build/lib/setuptools
copying setuptools/unicode_utils.py -> build/lib/setuptools
creating build/lib/pkg_resources/extern
copying pkg_resources/extern/__init__.py -> build/lib/pkg_resources/extern
creating build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/six.py -> build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/__init__.py -> build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/pyparsing.py -> build/lib/pkg_resources/_vendor
creating build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/__about__.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/markers.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/_structures.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/requirements.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/_compat.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/utils.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/__init__.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/specifiers.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/version.py -> build/lib/pkg_resources/_vendor/packaging
creating build/lib/setuptools/command
copying setuptools/command/build_ext.py -> build/lib/setuptools/command
copying setuptools/command/easy_install.py -> build/lib/setuptools/command
copying setuptools/command/build_py.py -> build/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command
copying setuptools/command/rotate.py -> build/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command
copying setuptools/command/upload.py -> build/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command
copying setuptools/command/saveopts.py -> build/lib/setuptools/command
copying setuptools/command/alias.py -> build/lib/setuptools/command
copying setuptools/command/egg_info.py -> build/lib/setuptools/command
copying setuptools/command/sdist.py -> build/lib/setuptools/command
copying setuptools/command/develop.py -> build/lib/setuptools/command
copying setuptools/command/test.py -> build/lib/setuptools/command
copying setuptools/command/install.py -> build/lib/setuptools/command
copying setuptools/command/setopt.py -> build/lib/setuptools/command
copying setuptools/command/register.py -> build/lib/setuptools/command
copying setuptools/command/__init__.py -> build/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command
copying setuptools/command/upload_docs.py -> build/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command
copying setuptools/command/install_lib.py -> build/lib/setuptools/command
creating build/lib/setuptools/extern
copying setuptools/extern/__init__.py -> build/lib/setuptools/extern
copying setuptools/script (dev).tmpl -> build/lib/setuptools
copying setuptools/script.tmpl -> build/lib/setuptools
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib/easy_install.py -> build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pkg_resources
creating build/bdist.linux-x86_64/egg/pkg_resources/extern
copying build/lib/pkg_resources/extern/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources/extern
copying build/lib/pkg_resources/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources
creating build/bdist.linux-x86_64/egg/pkg_resources/_vendor
copying build/lib/pkg_resources/_vendor/six.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor
creating build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/__about__.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/markers.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/_structures.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/requirements.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/_compat.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/utils.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/specifiers.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/version.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor
copying build/lib/pkg_resources/_vendor/pyparsing.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor
creating build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/py26compat.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/archive_util.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/extension.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/package_index.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/py27compat.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/script (dev).tmpl -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/dist.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/ssl_support.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/msvc9_support.py -> build/bdist.linux-x86_64/egg/setuptools
creating build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/build_ext.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/easy_install.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/build_py.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/bdist_rpm.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/rotate.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/bdist_wininst.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/upload.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/bdist_egg.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/saveopts.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/alias.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/egg_info.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/sdist.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/develop.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/test.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/setopt.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/register.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/__init__.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install_scripts.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/upload_docs.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install_egg_info.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install_lib.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/utils.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/site-patch.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/py31compat.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/depends.py -> build/bdist.linux-x86_64/egg/setuptools
creating build/bdist.linux-x86_64/egg/setuptools/extern
copying build/lib/setuptools/extern/__init__.py -> build/bdist.linux-x86_64/egg/setuptools/extern
copying build/lib/setuptools/script.tmpl -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/lib2to3_ex.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/__init__.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/sandbox.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/launch.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/windows_support.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/version.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/unicode_utils.py -> build/bdist.linux-x86_64/egg/setuptools
byte-compiling build/bdist.linux-x86_64/egg/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/extern/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/six.py to six.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/__about__.py to __about__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/markers.py to markers.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/_structures.py to _structures.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/requirements.py to requirements.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/_compat.py to _compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/specifiers.py to specifiers.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/version.py to version.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/pyparsing.py to pyparsing.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py26compat.py to py26compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/archive_util.py to archive_util.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/extension.py to extension.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/package_index.py to package_index.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py27compat.py to py27compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/ssl_support.py to ssl_support.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/msvc9_support.py to msvc9_support.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/build_ext.py to build_ext.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/build_py.py to build_py.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/bdist_rpm.py to bdist_rpm.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/rotate.py to rotate.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/bdist_wininst.py to bdist_wininst.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/upload.py to upload.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py to bdist_egg.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/saveopts.py to saveopts.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/alias.py to alias.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py to egg_info.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/sdist.py to sdist.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/develop.py to develop.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/test.py to test.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install.py to install.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/setopt.py to setopt.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/register.py to register.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install_scripts.py to install_scripts.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/upload_docs.py to upload_docs.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install_egg_info.py to install_egg_info.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install_lib.py to install_lib.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/site-patch.py to site-patch.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py31compat.py to py31compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/lib2to3_ex.py to lib2to3_ex.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/sandbox.py to sandbox.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/launch.py to launch.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/windows_support.py to windows_support.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/version.py to version.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/unicode_utils.py to unicode_utils.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/setuptools-20.3.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing setuptools-20.3.1-py2.7.egg
Copying setuptools-20.3.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding setuptools 20.3.1 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Installed /usr/local/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg
Processing dependencies for setuptools==20.3.1
Finished processing dependencies for setuptools==20.3.1
[root@Betty cheat]#
重新安装 pkg_resources ,此时报错为 "pkg_resources.DistributionNotFound" ,说明当前 pip 版本过低。
[root@Betty cheat]# pip install pkg_resources
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2900, in <module>
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2886, in _call_aside
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2913, in _initialize_master_working_set
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 642, in _build_master
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 943, in require
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 830, in resolve
pkg_resources.DistributionNotFound: The 'pip==1.3.1' distribution was not found and is required by the application
[root@Betty cheat]#
升级 pip 为最新版本 [root@Betty cheat]#
[root@Betty cheat]# easy_install -U pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 8.1.1
Downloading https://pypi.python.org/packages/source/p/pip/pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7
Processing pip-8.1.1.tar.gz
Writing /tmp/easy_install-3SW3zW/pip-8.1.1/setup.cfg
Running pip-8.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3SW3zW/pip-8.1.1/egg-dist-tmp-DTV0YK
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
creating /usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg
Extracting pip-8.1.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding pip 8.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
[root@Betty cheat]#
再次安装 pkg_resources 成功
[root@Betty cheat]# pip install pkg_resources
Collecting pkg-resources
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement pkg-resources (from versions: )
No matching distribution found for pkg-resources
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
[root@Betty cheat]#
安装 docopt 成功 [root@Betty cheat]# pip install docopt
Collecting docopt
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading docopt-0.6.2.tar.gz
Installing collected packages: docopt
Running setup.py install for docopt ... done
Successfully installed docopt-0.6.2
[root@Betty cheat]#
查看当前通过 pip 安装的工具 [root@Betty cheat]# pip list
cheat (2.1.22)
docopt (0.6.2)
pip (8.1.1)
setuptools (20.3.1)
[root@Betty cheat]#
可以正常使用 cheat 命令了
[root@Betty cheat]# cheat tar
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar
# To create an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/
# To extract a .gz archive:
tar -xzvf /path/to/foo.tgz
# To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/
# To list the content of an .gz archive:
tar -ztvf /path/to/foo.tgz
# To extract a .bz2 archive:
tar -xjvf /path/to/foo.tgz
# To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/
# To list the content of an .bz2 archive:
tar -jtvf /path/to/foo.tgz
# To create a .gz archive and exclude all jpg,gif,... from the tgz
tar czvf /path/to/foo.tgz --exclude=\*.{jpg,gif,png,wmv,flv,tar.gz,zip} /path/to/foo/
# To use parallel (multi-threaded) implementation of compression algorithms:
tar -z ... -> tar -Ipigz ...
tar -j ... -> tar -Ipbzip2 ...
tar -J ... -> tar -Ipixz ...
[root@Betty cheat]#