linux安装lolcat实现彩色文字输出信息
[root@localhost ~]# mount /dev/sr0 /media/
[root@localhost ~]# rpm -ivh epel-release-latest-7.noarch.rpm
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d/]# mv bak/CentOS-Media.repo ./
[root@localhost yum.repos.d/]# mv bak/CentOS-Base.repo ./
[root@localhost yum.repos.d]# cd
[root@localhost ~]# yum clean all
[root@localhost ~]# yum makecache
[root@localhost ~]# yum -y install rubygems ruby ruby-devel rpm-build wget gem
[root@localhost ~]# gem install rubygems-update -v 2.3.0
[root@localhost ~]# wget http://github.com/busyloop/lolcat/archive/master.zip
[root@localhost ~]# unzip master.zip
[root@localhost ~]# cd lolcat-master/
[root@localhost ~]# gem install lolcat