YUM源 光盘和阿里镜像站

连接光盘,挂在光盘

# mount /dev/cdrom /media/

编辑 /etc/yum.repos.d/iso.repo

[ISO]
name=ISO
baseurl=file:///media
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

[EPEL]
name=EPEL
baseurl=http://mirrors.aliyun.com/epel/6/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/epel/RPM-GPG-KEY-EPEL-6

repolist

# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.btte.net
EPEL                                                                                 | 4.4 kB     00:00
ISO                                                                                  | 4.0 kB     00:00 ...
repo id                                      repo name                                                status
EPEL                                         EPEL                                                     11,753
ISO                                          ISO                                                       6,518
base                                         CentOS-6 - Base                                           6,575
extras                                       CentOS-6 - Extras                                            34
updates                                      CentOS-6 - Updates                                          219
repolist: 25,099

Done!

时间: 2024-10-08 14:41:49

YUM源 光盘和阿里镜像站的相关文章

【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

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下将系统预置yum源更换为阿里云源

参考:http://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD 步骤1:备份 步骤2:更新CentOS-Base.repo 到/etc/yum.repos.d/ 步骤3:运行yum makecache生成缓存 至此,阿里云yum源更换完成,希望对你有帮助~

一键修改 yum 源为 aliyun 阿里源 Shell 脚本

CentOS安装后默认官方源,速度可能不是很快,这个时候就需要更改为国内的源了, 这里以 阿里源 为例,进行脚本展示 #!/bin/bash # by liuxg # 2019.05.15 # aliyun_repo.sh # 获得当前 CentOS 系统发行版本号 # 第一个 awk 后边必须换行, 目前未查到原因 releasetmp=`cat /etc/redhat-release | awk '{match($0,"release ") print substr($0,RSTA

CentOS 6 yum源   更换成阿里云扩展源

第一种: 1.rm -rf /etc/yum.repos.d/*    (执行此操作的时候记得事先装好wget    不然 你就得挂载光盘用rpm装wget了.)2.wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo 这个时候,执行 yum repolist的结果如下 [[email protected] ~]# yum

Redhat配置yum源(使用阿里云yum Repo)

1. 查看版本号和系统类别: cat /etc/redhat-release archor cat /etc/issue && arch 2.检查yum是否安装,以及安装了哪些依赖源并删除yum包 rpm -qa |grep yum 显示如下: yum-utils-1.1.31-24.el7.noarchyum-langpacks-0.4.2-3.el7.noarchyum-metadata-parser-1.1.4-10.el7.x86_64yum-rhn-plugin-2.0.1-4.

Centos的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/ CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo CentOS 6 wget -O /etc/yum

替换CENTOS自带的yum源为网易163镜像源

首先确保你的系统是centos5或者centos6 先备份你系统自带的repo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 切换为root用户 cd /etc/yum.repos.d/ 如果你是centos5用户就用 wget http://mirrors.163.com/.help/CentOS5-Base-163.repo 如果是centos6用户就使用 wget http://m

linux 更新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/ CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo 或者 curl -o /etc/yum.repos.d/C