离线安装
yum install --downloadonly --downloaddir=/home/files zlib-devel bzip2-devel openssl-devel ncurses-devel epel-release gcc gcc-c++ xz-devel readline-devel gdbm-devel sqlite-devel tk-devel db4-devel libpcap-devel libffi-devel
cd /home/files # 将依赖包copy到离线服务器,进入目录
rpm -Uvh ./*.rpm --nodeps --force # 安装所有rpm依赖包
在线安装
# 会自动将依赖包下载后并安装
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel epel-release gcc gcc-c++ xz-devel readline-devel gdbm-devel sqlite-devel tk-devel db4-devel libpcap-devel libffi-devel
https://www.yisu.com/zixun/43064.html
标签:gcc,centos,--,rpm,离线,devel,Linux,安装 From: https://www.cnblogs.com/tjw-bk/p/16895753.html