centOS7如何配置阿里云或者腾讯云yum源

众所周知,CentOS很多版本目前已经不再维护了,原本的在线yum源已经无法使用,所以需要我们配置其他的yum源。目前腾讯云或者阿里云的yum源都可以正常使用,所以本文教大家如何配置阿里云/腾讯云在线yum源。

阿里云yum源配置:

bash 复制代码
curl -s -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

curl -s -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

腾讯云yum源配置:

bash 复制代码
curl -s -o /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo

curl -s -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo

本文为centos7配置方式,其他centos版本均类似。

相关推荐
CoderYanger4 小时前
Java EE 进阶:14.案例综合练习-博客系统(第二弹):博客详情+令牌技术
服务器·前端·spring boot·后端·spring·java-ee·github
Rsingstarzengjx6 小时前
第三十九章 Linux PWM 驱动实验
linux·运维·服务器
SeanQhl7 小时前
BoostKit 环境准备
linux·openeuler·鲲鹏·boostkit·软件源
笔记本note8 小时前
Linux 内存管理
linux·服务器·内存管理
郝学胜-神的一滴9 小时前
Effective STL 条款 14:用扩容函数避免重新分配
linux·开发语言·网络·数据结构·c++·单片机
GeW10 小时前
入行 Linux 与数据库运维:一条路径、三项习惯、一个考证观
linux·数据库
南子北游12 小时前
Linux 进程状态全景(上)
linux·运维·服务器
wdfk_prog12 小时前
Wi-Fi Direct 真机实践:JOIN 建链耗时优化
服务器·asp.net·php
大今野13 小时前
专转本计算机·云计算核心考点精讲(概念·关键技术·服务模式)
大数据·云计算·big data·专转本
lusklusklusk16 小时前
SQL Server Registered Servers 的核心功能:集中管理、分组执行与中央管理服务器(CMS)解析
运维·服务器