-
安装gcc环境依赖的rpm包时需在离线状态下进行
资源介绍
离线安装gcc环境依赖的rpm包
包含的包如下:
autogen-libopts-5.18-5.el7.x86_64
cpp-4.8.5-44.el7.x86_64
gcc-4.8.5-44.el7.x86_64
gcc-c++-4.8.5-44.el7.x86_64
glibc-devel-2.12-1.132.el6.x86_64.rpm
glibc-headers-2.12-1.132.el6.x86_64.rpm
kernel-headers-2.6.32-431.el6.x86_64.rpm
keyutils-libs-devel-1.5.8-3.el7.x86_64
krb5-devel-1.15.1-50.el7.x86_64
libcom_err-1.42.9-19.el7.x86_64
libmpc-1.0.1-3.el7.x86_64
libselinux-devel-2.5-15.el7.x86_64
libsepol-devel-2.5-10.el7.x86_64
libstdc++-devel-4.4.7-4.el6.x86_64.rpm
libverto-devel-0.2.5-4.el7.x86_64
mpfr-2.4.1-6.el6.x86_64.rpm
ntp-4.2.6p5-29.el7.centos.2.x86_64
openssl-1.0.2k-19.el7.x86_64
openssl-devel-1.0.2k-19.el7.x86_64
openssl-libs-1.0.2k-19.el7.x86_64
openssl098e-0.9.8e-29.el7.centos.3.x86_64
pkgconfig-0.27.1-4.el7.x86_64
tcl-8.5.13-8.el7.x86_64
安装流程如下:
在rpm目录下执行指令
rpm -Uvh *.rpm --nodeps --force
小提示:当出现依赖问题时,解决的方法就是在rpm 语句后面加上 --nodeps --force