一.yum源概述 yum需要一个yum库,也就是yum源.默认情况下,CentOS就有一个yum源.在/etc/yum.repos.d/目录下有一些默认的配置文件(可以将这些文件移到/opt下,或者直接在yum.repos.d/下重命名).首先要找一个yum库(源),然后确保本地有一个客户端(yum这个命令就是客户端),由yum程序去连接服务器.连接的方式是由配置文件决定的.通过编辑/etc/yum.repos.d/CentOS-Base.repo文件,可以修改设置. 打开CentOS-Base…
yum的工具,自动去下载某个yum仓库的 rpm软件包,并且自动搜索软件下载软件依赖,如同pip3,npm等包管理工具 yum载linux中的 yum仓库是 /etc/yum.repos.d 并且在这个目录,只有以 .repo的文件结尾,才会识别为是一个yum仓库 自定义yum仓库,修改yum源 为什么要修改? 1.yum默认配置的是centos的国外仓库地址,下载比较慢,修改为阿里云的yum仓库,加速下载 配置阿里云yum源的步骤 1.备份旧的yum源 cd /etc/yum.repos.d/…
1. 备份原来的yum源 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.设置aliyun的yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 3.添加EPEL源 EPEL(http://fedoraproject.org/wiki/EPEL)是由 Fedora…
将Centos的yum源更换为国内的阿里云源 author:headsen chen date:2018-04-28  13:33:41 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/Cent…
阿里云Linux安装镜像源地址:http://mirrors.aliyun.com/ 第一步:备份原镜像文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 第二步:下载CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/r…
备份本地源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 配置CentOS6(aliyun) $ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo $ sed -i 's/$releasever/6/g' /etc/yum.repos.d/CentOS-Base.r…
1,登陆root帐号 2,cd /etc/yum.repo.d 3,mv CentOS-Base.repo CentOS-Base.repo.bak4,wget http://mirrors.aliyun.com/repo/Centos-7.repo5,mv Centos-7.repo CentOS-Base.repo6, yum clean all7, yum makecache8,yum update 4~5步骤可以wget一步到位的…
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum makecache…
1.复制备份: cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2.下载: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo "-bash: wget: 未找到命令"-解决办法: yum -y install wget 3.生成缓存: yum makecac…
centos  系统软件包管理  yum 本地yum配置  扩展源epel  rpm  清除yum缓存  yum provides "*/vim"   第十节课 你不能保证可逆化操作就要备份配置文件 上半节课 rpm -ivh xx.rpm--force--force-Urpm -erpm -qarpm -qi 包名rpm -qf filenamerpm -ql 包名rpm -Varpm -qR 下半节课 yum install -y filename(包名) yum groupins…