CentOS7 配置阿里云yum源,非常之简单

1.进入yum的文件夹

命令:cd   /etc/yum.repos.d/

2.下载wget

命令:yum -y install wget

3.删除yum文件夹所有yum源

命令:rm -rf    /etc/yum.repos.d/*.repo

4.利用wget下载阿里云repo文件

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

5.执行yum源更新命令

命令:yum clean all

命令:yum makecache

注意:依次执行

6.看一下yum仓库有多少包

命令:yum repolist

总结:根据自己的需要而定。。。。。。。。

原文地址:https://www.cnblogs.com/zgqbky/p/11722032.html

时间: 2024-08-29 09:09:10

CentOS7 配置阿里云yum源,非常之简单的相关文章

CentOS7 配置阿里云yum源

1.打开centos的yum文件夹 输入命令cd  /etc/yum.repos.d/ 2.用wget下载repo文件 输入命令wget  http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有安装wget工具,输入yum -y install wget 回车进行安装. 当前目录是/etc/yum.repos.d/,刚刚下载的Centos-7.repo也在这个目录上 3.备份系统原来的repo文件 mv  CentOs-Bas

CentOS7安装(三)- 配置阿里云yum源

CentOS7安装(三)- 配置阿里云yum源 CentOS7安装好以后,完成网络配置以后,就是开始配置yum源,因为yum安装我们需要的各种软件. 具体步骤如下: 1.打开centos的yum文件夹 输入命令 cd /etc/yum.repos.d/ 2.用wget下载repo文件 输入命令wget:http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有安装wget工具,输入yum -y install wget 回车进行安

安装丨CentOS7更换阿里云yum源

参考: https://blog.csdn.net/HistoryCreator/article/details/78570711 https://yq.aliyun.com/ziliao/408380 1.备份系统yum源 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.设置阿里云yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://m

centos7更换阿里云yum源后无法安装nginx的问题解决

在centos7上,我将yum源更换为阿里云源,按照配置完成后,想使用yum安装nginx,但是老是提示我找不到nginx,没有可用的安装包,无论我是换为华为云的yum源,还是其他国内源,都无法找到.我的centos版本为7.7 无论我是安装epel-release,还是安装nginx的仓库,都没办法找到nginx包 我的nginx repo配置也没问题 一安装就找不到 但是可以用yum搜索到nginx的其他组件 这不科学 后来我想一个办法,在能够yum安装nginx的同样的机器上,把nginx

Centos7更换阿里云yum源

备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup或mv /etc/yum/repos.d/{,CentOS-Base.repodate -I} centos7 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或 curl -o /etc/yum.repos.d/

CentOS 配置阿里云 yum 源

CentOS 1.备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo 或者 curl -o /etc/yum.re

redhat6.5配置阿里云yum源

1.下载repo文件 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 2.更改发行版本及CPU体系架构参数值($releasever与$basearch) sed -i.$(date +%F) 's#/$releasever#/6#g;s#/$basearch#/x86_64#g' CentOS-Base.repo 3.清空yum缓存 yum clean all

【yum】搭建yum源,163 阿里云yum源部署

配置阿里云yum源 前提:可以访问互联网 1. 备份你的原镜像文件,以免出错后可以恢复 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载新的CentOS-Base.repo 到/etc/yum.repos.d/ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

CentOS配置本地yum源/阿里云yum源/163yuan源,并配置yum源的优先级

一.用Centos镜像搭建本地yum源 由于安装centos后的默认yum源为centos的官方地址,所以在国内使用很慢甚至无法访问,所以一般的做法都是把默认的yum源替换成aliyun的yum源或者163等国内的yum源(下文介绍如何配置). 但是以上的方法都是需要网络的,当没有网络的时候就无法使用了,所以还有一个常用的方法就是用Centos的iso镜像搭建本地yum源,这样安装软件的速度就会飞快,缺点是可能有些包没有. 1.安装Centos后默认的yum源如下 [[email protect