阿里雲Centos映象源和EPEL源

2021-09-21 00:07:15 字數 1556 閱讀 1302

centos配置yum本地源aliyun的epel源

1、本地yum源

[root@openstack ~]# mount /dev/sr0  /mnt/

[root@openstack ~]# echo "/dev/sr0/mnt iso9660 defaults 0 0" >> /etc/fstab

[root@openstack ~]# rm -rf/etc/yum.repos.d/*

[root@openstack ~]# cat >/etc/yum.repos.d/rhel6.repo <> [rhel6-source]

> name=rhel6-source

> baseurl=file:///mnt

> enabled=1

> gpgcheck=0

> eof

2、配置阿里雲網路yum源

阿里雲映象源站點(

centos映象參考:

centos

1、備份

mv /etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.backup

centos 5

wget -o /etc/yum.repos.d/centos-base.repo

centos 6

wget -o /etc/yum.repos.d/centos-base.repo

centos 7

wget -o /etc/yum.repos.d/centos-base.repo

3、之後執行yum makecache生成快取

rhel系統配置:

[root@openstack ~]# yum clean all

[root@openstack ~]# yum list

[root@openstack ~]# wget -o/etc/yum.repos.d/centos-base.repo

[root@openstack ~]# sed -i  's/$releasever/6.7/g'/etc/yum.repos.d/centos-base.repo    [root@openstack ~]# yum clean all

[root@openstack ~]# yum list

3、配置阿里雲epel源:

配置參考:

epel

1、備份(如有配置其他epel源)

mv /etc/yum.repos.d/epel.repo/etc/yum.repos.d/epel.repo.backup

mv /etc/yum.repos.d/epel-testing.repo/etc/yum.repos.d/epel-testing.repo.backup

epel(rhel 7)

wget-o /etc/yum.repos.d/epel.repo

epel(rhel 6)

wget-o /etc/yum.repos.d/epel.repo

epel(rhel 5)

wget-o /etc/yum.repos.d/epel.repo

阿里雲Centos映象源和EPEL源

centos配置yum本地源aliyun的epel源 1 本地yum源 root openstack mount dev sr0 mnt root openstack echo dev sr0 mnt iso9660 defaults 0 0 etc fstab root openstack rm ...

CentOS 更改 yum 映象源為阿里雲映象源

確認 centos 版本,在終端中輸入 cat proc version會得到一下內容,el7則代表為 centos 7 版本。linux version 3.xx.x x.xx.x.el7.x86 64 mockbuild kbuilder.bsys.centos.org gcc version ...

Centos映象位址(阿里雲映象)

各個版本的iso映象檔案說明 centos 7 x86 64 1708.iso 標準安裝版 推薦 centos 7 x86 64 everything 1708.iso 完整版,整合所有軟體 以用來補充系統的軟體或者填充本地映象 centos 7 x86 64 livegnome 1708.iso ...