1 CentOS 7
1.1 阿里云
mkdir /opt/repo
mv /etc/yum.repos.d/* /opt/repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
yum install vim bash-completion wget -y
1.2 清华大学
mkdir /opt/repo
mv /etc/yum.repos.d/* /opt/repo
cat > /etc/yum.repos.d/centos7.repo <<EOF
[QingHua-atomic]
name=QingHua-atomic
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/atomic/x86_64/
enabled=1
gpgcheck=0
[QingHua-centosplus]
name=QingHua-centosplus
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/centosplus/x86_64/
enabled=1
gpgcheck=0
[QingHua-dotnet]
name=QingHua-dotnet
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/dotnet/x86_64/
enabled=1
gpgcheck=0
[QingHua-extras]
name=QingHua-extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/x86_64/
enabled=1
gpgcheck=0
[QingHua-fasttrack]
name=QingHua-fasttrack
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/fasttrack/x86_64/
enabled=1
gpgcheck=0
[QingHua-infra-common]
name=QingHua-infra-common
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/infra/x86_64/infra-common/
enabled=1
gpgcheck=0
[QingHua-buildtools-common]
name=QingHua-buildtools-common
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/infra/x86_64/buildtools-common/
enabled=1
gpgcheck=0
[QingHua-gitforge-pagure]
name=QingHua-gitforge-pagure
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/infra/x86_64/gitforge-pagure/
enabled=1
gpgcheck=0
[QingHua-qpid-dispatch]
name=QingHua-qpid-dispatch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/messaging/x86_64/qpid-dispatch/
enabled=1
gpgcheck=0
[QingHua-qpid-proton]
name=QingHua-qpid-proton
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/messaging/x86_64/qpid-proton/
enabled=1
gpgcheck=0
[QingHua-nfv-common]
name=QingHua-buildtools-common
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/nfv/x86_64/common/
enabled=1
gpgcheck=0
[QingHua-nfv-fdio]
name=QingHua-nfv-fdio
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/nfv/x86_64/fdio/
enabled=1
gpgcheck=0
[QingHua-opstools]
name=QingHua-opstools
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/opstools/x86_64/
enabled=1
gpgcheck=0
[QingHua-os]
name=QingHua-os
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/
enabled=1
gpgcheck=0
[QingHua-rt]
name=QingHua-rt
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/rt/x86_64/
enabled=1
gpgcheck=0
[QingHua-sclo-rh]
name=QingHua-sclo-rh
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/sclo/x86_64/rh/
enabled=1
gpgcheck=0
[QingHua-sclo-sclo]
name=QingHua-sclo-sclo
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/sclo/x86_64/sclo/
enabled=1
gpgcheck=0
[QingHua-updates]
name=QingHua-updates
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/updates/x86_64/
enabled=1
gpgcheck=0
[QingHua-libvirt-latest]
name=QingHua-libvirt-latest
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/virt/x86_64/libvirt-latest/
enabled=1
gpgcheck=0
[QingHua-azure]
name=QingHua-azure
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/virt/x86_64/azure/
enabled=1
gpgcheck=0
[QingHua-azure-kernel]
name=QingHua-azure-kernel
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/virt/x86_64/azure-kernel/
enabled=1
gpgcheck=0
[QingHua-kvm-common]
name=QingHua-kvm-common
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/virt/x86_64/kvm-common/
enabled=1
gpgcheck=0
[QingHua-ovirt-common]
name=QingHua-ovirt-common
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/virt/x86_64/ovirt-common/
enabled=1
gpgcheck=0
EOF
2 CentOS 8
2.1 阿里云
mkdir /opt/repo
mv /etc/yum.repos.d/* /opt/repo
cat > /etc/yum.repos.d/system.repo <<EOF
[HighAvailability]
name=HighAvailability
baseurl=https://mirrors.aliyun.com/centos/8-stream/HighAvailability/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[BaseOS]
name=BaseOS
baseurl=https://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[extras]
name=extras
baseurl=https://mirrors.aliyun.com/centos/8-stream/extras/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[centosplus]
name=centosplus
baseurl=https://mirrors.aliyun.com/centos/8-stream/centosplus/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[AppStream]
name=AppStream
baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[nfv]
name=AppStream
baseurl=https://mirrors.aliyun.com/centos/8-stream/nfv/x86_64/openvswitch-2
enabled=1
gpgcheck=0
module_hotfixes=1
[cloud]
name=cloud
baseurl=https://mirrors.aliyun.com/centos/8-stream/cloud/x86_64/openstack-yoga
enabled=1
gpgcheck=0
module_hotfixes=1
[devel]
name=devel
baseurl=https://mirrors.aliyun.com/centos/8-stream/Devel/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[PowerTools]
name=PowerTools
baseurl=https://mirrors.aliyun.com/centos/8-stream/PowerTools/x86_64/os/
enabled=1
gpgcheck=0
module_hotfixes=1
[epel-release]
name=epel-release
baseurl=https://mirrors.aliyun.com/epel/8/Everything/x86_64
enabled=1
gpgcheck=0
module_hotfixes=1
EOF
yum install vim bash-completion wget -y
2.2 清华大学
mkdir /opt/repo
mv /etc/yum.repos.d/* /opt/repo
cat > /etc/yum.repos.d/system.repo <<EOF
[Qinghua-HighAvailability]
name=Qinghua-HighAvailability
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/HighAvailability/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-BaseOS]
name=Qinghua-BaseOS
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/BaseOS/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-extras]
name=Qinghua-extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/extras/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-centosplus]
name=Qinghua-centosplus
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/centosplus/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-AppStream]
name=Qinghua-AppStream
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/AppStream/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-nfv]
name=Qinghua-nfv
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/nfv/x86_64/openvswitch-2
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-cloud]
name=Qinghua-cloud
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/cloud/x86_64/openstack-yoga
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-devel]
name=Qinghua-devel
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/Devel/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-PowerTools]
name=Qinghua-PowerTools
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/8-stream/PowerTools/x86_64/os/
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-epel-release]
name=Qinghua-epel-release
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/8/Everything/x86_64
enabled=1
gpgcheck=0
module_hotfixes=1
EOF
yum install vim bash-completion wget -y
3 CentOS 9
3.1 阿里云
mkdir /opt/repo
mv /etc/yum.repos.d/* /opt/repo
cat > /etc/yum.repos.d/system.repo <<EOF
[Qinghua-BaseOS]
name=Qinghua-BaseOS
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-AppStream]
name=Qinghua-AppStream
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/AppStream/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-HighAvailability]
name=Qinghua-HighAvailability
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/HighAvailability/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-epel-release]
name=Qinghua-epel-release
baseurl=https://mirrors.aliyun.com/epel/9/Everything/x86_64
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-extras]
name=Qinghua-extras
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/extras/x86_64/extras-common
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-nfv]
name=Qinghua-nfv
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/nfv/x86_64/openvswitch-2
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-cloud]
name=Qinghua-cloud
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/cloud/x86_64/openstack-yoga
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-Core]
name=Qinghua-Core
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/core/x86_64/centos-plus
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-infra]
name=Qinghua-infra
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/infra/x86_64/infra-common
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-kmods-main]
name=Qinghua-kmods-main
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/kmods/x86_64/packages-main
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-kmods-rebuild]
name=Qinghua-kmods-rebuild
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/kmods/x86_64/packages-rebuild
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-messaging]
name=Qinghua-messaging
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/messaging/x86_64/rabbitmq-38
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-opstools]
name=Qinghua-opstools
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/opstools/x86_64/collectd-5
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghu-virt-45]
name=Qinghua-virt-45
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/virt/x86_64/ovirt-45
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-kata-containers]
name=Qinghua-kata-containers
baseurl=https://mirrors.aliyun.com/centos-stream/SIGs/9-stream/virt/x86_64/kata-containers
enabled=1
gpgcheck=0
module_hotfixes=1
EOF
yum install vim bash-completion wget -y
3.2 清华大学
mkdir /opt/repo
mv /etc/yum.repos.d/* /opt/repo
cat > /etc/yum.repos.d/system.repo <<EOF
[Qinghua-BaseOS]
name=Qinghua-BaseOS
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/9-stream/BaseOS/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-AppStream]
name=Qinghua-AppStream
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/9-stream/AppStream/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-HighAvailability]
name=Qinghua-HighAvailability
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/9-stream/HighAvailability/x86_64/os
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-epel-release]
name=Qinghua-epel-release
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/9/Everything/x86_64
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-extras]
name=Qinghua-extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/extras/x86_64/extras-common
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-nfv]
name=Qinghua-nfv
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/nfv/x86_64/openvswitch-2
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-cloud]
name=Qinghua-cloud
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/cloud/x86_64/openstack-yoga
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-Core]
name=Qinghua-Core
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/core/x86_64/centos-plus
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-infra]
name=Qinghua-infra
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/infra/x86_64/infra-common
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-kmods-main]
name=Qinghua-kmods-main
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/kmods/x86_64/packages-main
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-kmods-rebuild]
name=Qinghua-kmods-rebuild
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/kmods/x86_64/packages-rebuild
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-messaging]
name=Qinghua-messaging
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/messaging/x86_64/rabbitmq-38
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-opstools]
name=Qinghua-opstools
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/opstools/x86_64/collectd-5
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghu-virt-45]
name=Qinghua-virt-45
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/virt/x86_64/ovirt-45
enabled=1
gpgcheck=0
module_hotfixes=1
[Qinghua-kata-containers]
name=Qinghua-kata-containers
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-stream/SIGs/9-stream/virt/x86_64/kata-containers
enabled=1
gpgcheck=0
module_hotfixes=1
EOF
yum install vim bash-completion wget -y
4 Ubuntu
4.1 南京大学
cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat > /etc/apt/sources.list <<EOF
deb https://mirror.nju.edu.cn/ubuntu focal main restricted
deb https://mirror.nju.edu.cn/ubuntu focal-updates main restricted
deb https://mirror.nju.edu.cn/ubuntu focal universe
deb https://mirror.nju.edu.cn/ubuntu focal-updates universe
deb https://mirror.nju.edu.cn/ubuntu focal multiverse
deb https://mirror.nju.edu.cn/ubuntu focal-updates multiverse
deb https://mirror.nju.edu.cn/ubuntu focal-backports main restricted universe multiverse
deb https://mirror.nju.edu.cn/ubuntu focal-security main restricted
deb https://mirror.nju.edu.cn/ubuntu focal-security universe
deb https://mirror.nju.edu.cn/ubuntu focal-security multiverse
deb https://mirror.nju.edu.cn/docker-ce/linux/ubuntu/ focal stable
deb https://mirror.nju.edu.cn/kubernetes/apt/ kubernetes-xenial main
EOF
apt update && apt install vim wget curl bash-completion -y
5 Rocky Linux
5.1 Rocky9.6 更换国内源
1.yum软件源配置文件目录
/etc/yum.conf #为所有仓库提供公共配置
/etc/yum.repos.d/*.repo #为每个仓库的提供配置文件,以repo结尾的文件皆为仓库的配置文件
2.Rocky Linux 国内镜像源
阿里云镜像:https://mirrors.aliyun.com/rockylinux/
腾讯云镜像:https://mirrors.cloud.tencent.com/rocky/
中科大镜像:https://mirrors.ustc.edu.cn/rocky/
上海交大镜像:https://mirrors.sjtug.sjtu.edu.cn/rocky/
西安交大镜像:https://mirrors.xjtu.edu.cn/rocky/
浙江大学镜像:https://mirrors.zju.edu.cn/rocky/
南京大学镜像:https://mirrors.nju.edu.cn/rocky/
山东大学镜像:https://mirrors.sdu.edu.cn/rocky/
兰州大学镜像:https://mirror.lzu.edu.cn/rocky/
大连东软镜像:https://mirrors.neusoft.edu.cn/rocky/
3.替换方式
1.进入/etc/yum.repos.d/目录下
[root@loadbalance ~]# cd /etc/yum.repos.d/
2.备份原有文件
[root@loadbalance yum.repos.d]# mkdir bak
[root@loadbalance yum.repos.d]# cp *repo* bak/
[root@loadbalance yum.repos.d]# ll
drwxr-xr-x. 2 root root 98 Sep 18 21:00 bak
[root@loadbalance yum.repos.d]# cd bak
[root@loadbalance bak]# ls
rocky-addons.repo rocky-devel.repo rocky-extras.repo rocky.repo
2.创建一个配置文件,文件名自拟,如需要定制一个阿里云的源
cat > /etc/yum.repos.d/Rocky.repo<<'EOF'
[BaseOS]
name=Rocky Linux $releasever - BaseOS
baseurl=https://mirrors.aliyun.com/rockylinux/9.6/BaseOS/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
[AppStream]
name=Rocky Linux $releasever - AppStream
baseurl=https://mirrors.aliyun.com/rockylinux/9.6/AppStream/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
EOF
4.更新软件源
[root@loadbalance yum.repos.d]# yum makecache
4.使用脚本自动配置国内源
以下是一个一键配置阿里云源的脚本示例:
#!/bin/bash
mv /etc/yum.repos.d/rocky.repo /etc/yum.repos.d/rocky.repo.bak
cat <<EOF > /etc/yum.repos.d/rocky.repo
[BaseOS]
name=Rocky Linux $releasever - BaseOS
baseurl=https://mirrors.aliyun.com/rockylinux/9.6/BaseOS/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
[AppStream]
name=Rocky Linux $releasever - AppStream
baseurl=https://mirrors.aliyun.com/rockylinux/9.6/AppStream/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
EOF
dnf clean all
dnf makecache
5.2 Rocky 9.6 搭建本地yum源
1.首先进入Rocky官网下载完整版镜像,并上传镜像到/opt下
Rocky官网:https://rockylinux.org/zh-CN/download
[root@loadbalance ~]# ls /opt
Rocky-9.6-x86_64-dvd.iso
2.编辑配置文件
[root@loadbalance ~]# cd /etc/yum.repos.d/
[root@loadbalance yum.repos.d]# vim Rocky-Media.repo
# Rocky-Media.repo
#
# You can use this repo to install items directly off the installation media.
# Verify your mount point matches one of the below file:// paths.
[Media-BaseOS]
name=Rocky Linux $releasever - Media - BaseOS
baseurl=file:///media/Rocky/BaseOS
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
[Media-AppStream]
name=Rocky Linux $releasever - Media - AppStream
baseurl=file:///media/Rocky/AppStream
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
3.创建挂载所需路径
[root@loadbalance yum.repos.d]# mkdir /media/Rocky
4.挂载到/media/Rocky
[root@loadbalance yum.repos.d]# mount -o loop /opt/Rocky-9.6-x86_64-dvd.iso /media/Rocky/
mount: /media/Rocky: WARNING: source write-protected, mounted read-only.
[root@loadbalance yum.repos.d]# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 4096 0 4096 0% /dev
tmpfs 1985900 0 1985900 0% /dev/shm
tmpfs 794364 9260 785104 2% /run
efivarfs 256 55 197 22% /sys/firmware/efi/efivars
/dev/mapper/rl-root 46592000 14911676 31680324 33% /
/dev/sda2 983040 287136 695904 30% /boot
/dev/sda1 613160 7212 605948 2% /boot/efi
tmpfs 397180 0 397180 0% /run/user/0
/dev/loop0 12549994 12549994 0 100% /media/Rocky
5.清除yum缓存进行安装测试
[root@loadbalance yum.repos.d]# yum clean all
[root@loadbalance yum.repos.d]# yum makecache
[root@loadbalance yum.repos.d]# yum -y install bind
6 Python PIP仓库
pip install xxx -i url
7 仓库链接
清华大学 :https://pypi.tuna.tsinghua.edu.cn
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科学技术大学 :http://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学:http://pypi.hustunique.com/
豆瓣源:http://pypi.douban.com/simple/