cmatrix(终端里模拟《黑客帝国》数字雨效果的小工具)本身对 CentOS 的版本没有严格限制,只要满足下面几个条件就能编译/运行:
gcc + ncurses 的任何 CentOS 版本都行安装前需要:
# CentOS 7/8
yum install -y gcc make ncurses ncurses-devel
源码编译(推荐)
wget https://github.com/abishekvashok/cmatrix/releases/download/v2.0/cmatrix-v2.0-Butterscotch.tar.gz
tar -xzf cmatrix-v2.0-Butterscotch.tar.gz
cd cmatrix
./configure
make
make install
EPEL 源(旧版)
yum install -y epel-release
yum install -y cmatrix
⚠️ CentOS 8 以后 EPEL 里可能没有,建议用源码
cmatrix 对 CentOS 版本没有硬性要求,CentOS 7 和 8 是最常用、最稳妥的选择。
如果你是:
可以告诉我你的具体 CentOS 版本,我给你精确命令。