阿里云Linux官方开源镜像

2020年07月6日

阿里云官方地址:https://developer.aliyun.com/mirror/

CentOS 镜像

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 6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
3. 运行 yum makecache 生成缓存
4. 其他
非阿里云ECS用户会出现 Couldn't resolve host 'mirrors.cloud.aliyuncs.com' 信息,不影响使用。用户也可自行修改相关配置: eg:
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

 
官方主页:https://www.centos.org/
镜像地址:https://mirror.centos.org/centos/
Wiki:https://wiki.centos.org/

Ubuntu 镜像

配置方法,域名说明

对于阿里云ECS用户,可以直接使用内部域名访问,而对于非云用户则需要使用公网域名 mirrors.aliyun.com 来访问。
图形界面配置
新手推荐使用图形界面配置: 系统设置 -> 软件和更新 选择下载服务器 -> "mirrors.aliyun.com"
手动更改
用你熟悉的编辑器打开:
/etc/apt/sources.list
替换默认的
https://archive.ubuntu.com/
为
mirrors.aliyun.com

以Ubuntu 14.04.5 LTS为例,最后的效果如下:
deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

## Not recommended
# deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

ubuntu 16.04 配置如下
deb https://mirrors.aliyun.com/ubuntu/ xenial main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial main

deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb https://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial universe
deb https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb https://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main
deb https://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security universe

ubuntu 18.04(bionic) 配置如下
deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

ubuntu 20.04(focal) 配置如下
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

 
官方主页:https://cn.ubuntu.com/download
镜像地址:https://ubuntu.com/download/alternative-downloads
wiki:https://wiki.ubuntu.com/PeopleUbuntuCom

Debian 镜像

配置方法
编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)
deb [by-hash=force] https://mirrors.aliyun.com/deepin lion main contrib non-free

 
官方主页:https://www.debian.org/
镜像地址:https://www.debian.org/CD/
Wiki:https://wiki.debian.org/

Fedora 镜像

1. 备份
mv /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo.backup
mv /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo.backup
2. 下载新的 fedora.repo 和 fedora-updates.repo 到 /etc/yum.repos.d/
fedora
wget -O /etc/yum.repos.d/fedora.repo https://mirrors.aliyun.com/repo/fedora.repo
或
curl -o /etc/yum.repos.d/fedora.repo https://mirrors.aliyun.com/repo/fedora.repo

fedora updates
wget -O /etc/yum.repos.d/fedora-updates.repo https://mirrors.aliyun.com/repo/fedora-updates.repo
或
curl -o /etc/yum.repos.d/fedora-updates.repo https://mirrors.aliyun.com/repo/fedora-updates.repo
3. 运行sudo yum makecache生成缓存

 
官方主页:https://getfedora.org/
镜像地址:https://alt.fedoraproject.org/
Wiki:https://fedoraproject.org/wiki/Fedora_Project_Wiki

Deepin 镜像

配置方法
编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)
deb [by-hash=force] https://mirrors.aliyun.com/deepin lion main contrib non-free

 
官方地址:https://www.deepin.org/zh/
镜像地址:https://www.deepin.org/zh/mirrors/packages/
Wiki:https://wiki.deepin.org/

OpenBSD 镜像
镜像地址:https://mirrors.aliyun.com/openbsd/
官方主页:https://www.openbsd.org/

Apache 镜像
下载地址:https://mirrors.aliyun.com/apache/
官方主页:https://projects.apache.org/

Arch Linux 镜像

配置方法
编辑/etc/pacman.d/mirrorlist,先注释掉里面的所有行,然后在文件的最顶端添加
Server = https://mirrors.aliyun.com/archlinux/$repo/os/$arch

 
官方主页: https://www.archlinux.org/
邮件列表: https://lists.archlinux.org/
论坛: https://bbs.archlinux.org/
Wiki: https://wiki.archlinux.org/

Gentoo 镜像

配置方法
在 /etc/portage/make.conf 中添加或修改
GENTOO_MIRRORS="https://mirrors.aliyun.com/gentoo/"

 
官方主页: https://www.gentoo.org/
邮件列表: https://www.gentoo.org/main/en/lists.xml
论坛: https://forums.gentoo.org/
文档: https://www.gentoo.org/doc/zh_cn/index.xml
Wiki: https://en.gentoo-wiki.com/
镜像列表: https://www.gentoo.org/main/en/mirrors.xml

Linux Kernel 镜像
下载地址:https://mirrors.aliyun.com/linux-kernel/
官方主页:https://www.kernel.org/

Lnmp一键部署脚本
官方主页:https://lnmp.org/
镜像地址:https://lnmp.org/download.html
Wiki:https://lnmp.org/faq.html


sicnature ---------------------------------------------------------------------
I P 地 址: 18.227.21.21
区 域 位 置: 美国俄亥俄
系 统 信 息: 美国
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://myzhenai.com.cn/post/3417.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注