标签:tool lse release pre 离线安装 profile ble 服务器 load
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++
# 安装了之后,并没有替换旧的,所以这里选择连接到最新的gcc/g++
echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile
source /etc/profile
#1 安装yum-plugin-downloadonly插件
sudo yum install yum-plugin-downloadonly
#2 下载centos-release-scl
sudo yum install --downloadonly --downloaddir=/home/test centos-release-scl
#3 安装centos-release-scl
sudo yum install centos-release-scl
#4 下载 devtoolset-9-gcc、 devtoolset-9-gcc-c++
sudo yum install --downloadonly --downloaddir=/home/test devtoolset-9-gcc devtoolset-9-gcc-c++
#5 在离线服务器,强制安装rpm包
标签:tool lse release pre 离线安装 profile ble 服务器 load
原文地址:https://www.cnblogs.com/codeRhythm/p/13906360.html