【YUM】YUM源列表


1.鏈接

centos | 鏡像站使用幫助 | 清華大學開源軟件鏡像站 | Tsinghua Open Source Mirror

CentOS 源使用幫助 - USTC Mirror Help 文檔

centos鏡像-centos下載地址-centos安裝教程-阿里巴巴開源鏡像站

# 清華源
cd /etc/yum.repos.d && for i in *.repo; do mv -f $i $i.bak;done
wget ftp://192.168.0.1/sdb6/Soft/repo/CentOS-Base.repo
# epel
rpm -Uvh https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm
# remi
rpm -Uvh https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm

yum clean all && yum makecache
yum list
cd

2.Docker源

yum install -y yum-utils

#官方源
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

#阿里源
yum-config-manager \
    --add-repo \
    http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

配置docker鏡像加速

阿里鏡像加速獲取地址

sudo mkdir -p /etc/docker

sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://nqiuwaqz.mirror.aliyuncs.com"]
}
EOF

sudo systemctl daemon-reload
sudo systemctl restart docker


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM