centos7 yum源更新

先进入到yum源文件cd /etc/yum.repo.d/ 

1、创建一个repo_bak目录,用于保存系统中原来yum的repo文件。

sudo mkdir repo_bak

2、备份yum源文件至repo_bak

sudo mv *.repo repo_bak/

3、到网易和阿里开源镜像站点下载系统对应版本的repo文件

wget http://mirrors.aliyun.com/repo/Centos-7.repo

4、清除系统yum缓存并生成新的yum缓存

yum clean all 清除系统yum 缓存

yum makecache 生成yum缓存

5、安装epel源

yum list | grep epel-release

yum install -y epel-release

6、使用阿里开源镜像提供的epel源

wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo

7、再次清除系统yum缓存,并重新生成新的yum缓存

yum clean all 清除yum缓存

yum makecache 生成yum缓存

8、查看系统可用的yum源和所有的yum源

yum repolist enabled

原文地址:https://www.cnblogs.com/sheshidu/p/11614514.html

时间: 2024-08-02 19:54:27

centos7 yum源更新的相关文章

配置Centos7 yum源

配置阿里Centos7 yum源1)到网址下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 2)备份原有Yum源文件,替换新的repo文件 cp Centos-7.repo /etc/yum.repos.d/ cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.bak mv Centos-7.repo CentOS-Base.repo 3)执行yum源更新命令 yu

Linux系统中yum源更新为国内镜像地址

yum源更新为国内的镜像地址    1)备份系统原文件 [[email protected] ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2)下载国内的镜像地址文件 [[email protected] ~]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -P /usr/local/src/ --2015-07

CentOS 配置163的yum源更新笔记

CentOS系统自带的更新源的速度实在是慢,为了让CentOS6使用速度更快的YUM更新源,可以选择163(网易)的更新源. # cd /etc/yum.repos.d/ # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 备份并替换系统的repo文件 # mv CentOS-Base.repo CentOS-Base.repo.bak # mv CentOS6-Base-163.repo CentOS-Base.repo 执行yu

red hat Linux 使用CentOS yum源更新

red hat linux是商业版软件,没有经过注册是无法使用红帽 yum源更新软件的,使用CentOS源更新操作如下: 1.删除red hat linux 原有的yum 源 rpm -aq | grep yum|xargs rpm -e --nodeps 2.下载CentOS yum 所需软件 yum-3.2.22-40.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm yum-metadata-pa

CentOS7 yum 源的配置与使用

YUM:Yellowdog Updater Modified  Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器.基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载.安装.(bing 词典) yum可以检测软件间的依赖性,并提示用户解决,将发布的软件放到yum server,然后分析这些软件的依赖关系,然后

Redhat7.3更换CentOS7 yum源

Redhat yum源是收费的,没有注册的Redhat机器是不能使用yum源的. 1.当前系统环境: 系统版本:Red Hat Enterprise Linux Server release 7.3 (Maipo) 软件环境:系统默认是自带了yum程序的,需要卸载,安装CentOS的 2.更换yum源: 卸载本地yum: # rpm -qa|grep yum    #查看本地yum # rpm -qa|grep yum|xargs rpm -e --nodeps      #卸载本地yum,不检

red halt 7.3使用Cent-os7 yum 源

困惑:在使用red halt学习时,未注册的用户,有些软件是无法通过yum网络源和本地光盘下载,此时使用Centos的yum源就显得很方便,因为红帽收购了Centos 所以软件的兼容性基本不会有什么问题 1.检查是否安装yum包 查看RHEL是否安装了yum,若是安装了,那么又有哪些yum包: [[email protected] yum.repos.d]# rpm -qa |grep yumyum-3.4.3-118.el7.noarchyum-utils-1.1.31-24.el7.noar

yum之yum源更新

一.yum介绍yum含义: Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的shell前端软件包管理器yum作用: 能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载.安装. 二.查看系统所用yum源命令:yum repolist yum install tree 系统默认的yum源(tree nc nmap):* base*: mirrors.cn

yum源更新

yum  install epel-release  //扩展包更新包 yum  update //更新yum源 原文地址:https://www.cnblogs.com/liuyp99999/p/9381638.html