Hostker 香港区域开源镜像站上线啦

现在起新开的运算型云服务器将会默认启用我们的香港区域内网开源镜像站进行更新,目前我们已经同步 CentOS 6 / 7 ,Ubuntu 16,Debian 8 这几个系统的主要更新源。每日凌晨 1 时与上游同步。

老用户可通过以下命令使用内网更新源:

CentOS 6

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget http://mirrors-hk.hostker.net/.help/CentOS6-Base-Hostker.repo -O/etc/yum.repos.d/CentOS6-Base-Hostker.repo

CentOS 7

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget http://mirrors-hk.hostker.net/.help/CentOS7-Base-Hostker.repo -O/etc/yum.repos.d/CentOS7-Base-Hostker.repo

Ubuntu 16

mv /etc/apt/sources.list /etc/apt/sources.list.backup
cat>/etc/apt/sources.list<<EOF
deb http://mirrors-hk.hostker.net/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors-hk.hostker.net/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors-hk.hostker.net/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors-hk.hostker.net/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors-hk.hostker.net/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors-hk.hostker.net/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors-hk.hostker.net/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors-hk.hostker.net/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors-hk.hostker.net/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors-hk.hostker.net/ubuntu/ xenial-backports main restricted universe multiverse
EOF

Debian 8

mv /etc/apt/sources.list /etc/apt/sources.list.backup
cat>/etc/apt/sources.list<<EOF
deb http://mirrors-hk.hostker.net/debian/ jessie main non-free contrib
deb http://mirrors-hk.hostker.net/debian/ jessie-updates main non-free contrib
deb http://mirrors-hk.hostker.net/debian/ jessie-backports main non-free contrib
deb http://mirrors-hk.hostker.net/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors-hk.hostker.net/debian/ jessie main non-free contrib
deb-src http://mirrors-hk.hostker.net/debian/ jessie-updates main non-free contrib
deb-src http://mirrors-hk.hostker.net/debian/ jessie-backports main non-free contrib
deb-src http://mirrors-hk.hostker.net/debian-security/ jessie/updates main non-free contrib
EOF

《Hostker 香港区域开源镜像站上线啦》上有1条评论

发表评论

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.