centos换源安装升级gcc

使用devtools升级安装的时候,由于此库已经停止更新 了,因此需要切换阿里源

SCL+Devtoolset 安装与使用笔记-腾讯云开发者社区-腾讯云 (tencent.com)https://cloud.tencent.com/developer/article/1889181

1 yum 安装

yum install centos-release-scl centos-release-scl-rh

2 换源CentOS-SCLo-scl-rh

打开 CentOS-SCLo-scl-rh.repo

CentOS-SCLo-rh.repo

Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more

information

centos-sclo-rh

name=CentOS-7 - SCLo rh

#baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/

mirrorlist=http://mirrorlist.centos.org?arch=$basearch\&release=7\&repo=sclo-rh

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

centos-sclo-rh-testing

name=CentOS-7 - SCLo rh Testing

baseurl=http://buildlogs.centos.org/centos/7/sclo/$basearch/rh/

gpgcheck=0

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

centos-sclo-rh-source

name=CentOS-7 - SCLo rh Sources

baseurl=http://vault.centos.org/centos/7/sclo/Source/rh/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

centos-sclo-rh-debuginfo

name=CentOS-7 - SCLo rh Debuginfo

baseurl=http://debuginfo.centos.org/centos/7/sclo/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

2 换源CentOS-SCLo-scl

SCL+Devtoolset 安装与使用笔记-腾讯云开发者社区-腾讯云 (tencent.com)https://cloud.tencent.com/developer/article/1889181

CentOS-SCLo-sclo.repo # # Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more # information [centos-sclo-sclo] name=CentOS-6 - SCLo sclo #baseurl=http://vault.centos.org/centos/6/sclo/$basearch/sclo/ baseurl=https://mirrors.aliyun.com/centos-vault/6.9/sclo/x86_64/sclo/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo [centos-sclo-sclo-testing] name=CentOS-6 - SCLo sclo Testing baseurl=http://buildlogs.centos.org/centos/6/sclo/$basearch/sclo/ gpgcheck=0 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo [centos-sclo-sclo-source] name=CentOS-6 - SCLo sclo Sources baseurl=http://vault.centos.org/centos/6/sclo/Source/sclo/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo [centos-sclo-sclo-debuginfo] name=CentOS-6 - SCLo sclo Debuginfo baseurl=http://debuginfo.centos.org/centos/6/sclo/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo

需要将所有的6全局替换为6

3 使能bash

source /opt/rh/devtoolset-11/enable

相关推荐
VNDR4 分钟前
工欲善其事,必先利其器
linux
维尔切35 分钟前
Nginx 反向代理与负载均衡
运维·nginx·负载均衡
心灵宝贝44 分钟前
Fedora 38 安装 perl-JSON RPM 包步骤(含依赖问题解决及附安装包)
linux
lilili也1 小时前
Linux——0:安装与配置、命令、gcc
linux
知白守黑2671 小时前
反向代理和负载均衡
运维·负载均衡
杨云龙UP1 小时前
小工具大体验:rlwrap加持下的Oracle/MySQL/SQL Server命令行交互
运维·服务器·数据库·sql·mysql·oracle·sqlserver
风跟我说过她1 小时前
CentOS 7 环境下 MySQL 5.7 深度指南:从安装、配置到基础 SQL 操作
sql·mysql·centos
is08151 小时前
全志 H3 armbian 备份
linux·服务器·网络
iconball2 小时前
个人用云计算学习笔记 --18(NFS 服务器、iSCSI 服务器)
linux·运维·笔记·学习·云计算
广药门徒3 小时前
Linux驱动开发与BuildRoot是什么关系与其的应用场景
linux·运维·驱动开发