Arch Linux镜像使用帮助

收录架构

  • i686
  • x86_64

收录版本

  • All

使用说明

编辑/etc/pacman.d/mirrorlist,在文件顶部加入以下行并注释掉剩下的行

Server = http://mirrors.hust.edu.cn/archlinux/$repo/os/$arch

相关链接



Arch Linux ARM镜像使用帮助

使用说明

编辑/etc/pacman.d/mirrorlist,在文件顶部加入以下行并注释掉剩下的行

Server = http://mirrors.hust.edu.cn/archlinuxarm/$repo/os/$arch

相关链接



CentOS镜像使用帮助

收录架构

  • i686
  • x86_64

收录版本

  • CentOS 5
  • CentOS 6
  • CentOS 7

使用说明

备份您的/etc/yum.repos.d/CentOS-Base.repo文件,选择您使用的CentOS版本对应的文件,下载后放到/etc/yum.repos.d目录下

CentOS 5 配置文件右键另存为

# CentOS-Base.repo
#
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-5
 
#released updates 
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-5
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-5
 
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons - mirrors.hust.edu.cn
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/addons/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-5
 
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-5

CentOS 6 配置文件

# CentOS-Base.repo
#
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-6
 
#released updates 
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-6
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-6
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-6
 
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-6

CentOS 7 配置文件

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
 
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-7
 
#released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-7
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirrors.hust.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.hust.edu.cn/centos/RPM-GPG-KEY-CentOS-7

最后运行yum makecache生成缓存

相关链接



CPAN镜像使用帮助

使用说明

编辑Config.pm,在文件顶部加入以下行并注释掉剩下的行

'urllist' => [q[http://mirror.hust.edu.cn/cpan/]],

或者安装perl-CPAN模块,然后运行cpan,按照以下提示选择HUST镜像CPAN源(HUST CPAN源已成为官方源):

 CPAN is the world-wide archive of perl resources. It consists of about
300 sites that all replicate the same contents around the globe. Many
countries have at least one CPAN site already. The resources found on
CPAN are easily accessible with the CPAN.pm module. If you want to use
CPAN.pm, lots of things have to be configured. Fortunately, most of
them can be determined automatically. If you prefer the automatic
configuration, answer 'yes' below.

If you prefer to enter a dialog instead, you can answer 'no' to this
question and I'll let you configure in small steps one thing after the
other. (Note: you can revisit this dialog anytime later by typing 'o
conf init' at the cpan prompt.)
Would you like me to configure as much as possible automatically? [yes] no
First, pick a nearby continent and country by typing in the number(s)
in front of the item(s) you want to select. You can pick several of
each, separated by spaces. Then, you will be presented with a list of
URLs of CPAN mirrors in the countries you selected, along with
previously selected URLs. Select some of those URLs, or just keep the
old list. Finally, you will be prompted for any extra URLs -- file:,
ftp:, or http: -- that host a CPAN mirror.

(1) Africa
(2) Asia
(3) Europe
(4) North America
(5) Oceania
(6) South America
(7) (edit previous picks)
Select your continent (or several nearby continents) [7] 2

(1) China
(2) India
(3) Indonesia
(4) Israel
(5) Japan
(6) Kazakhstan
(7) Pakistan
(8) Republic of Korea
(9) Saudi Arabia
(10) Singapore
(11) Taiwan
(12) Thailand
(13) Turkey
(14) Viet Nam
(15) (edit previous picks)
Select your country (or several nearby countries) [15] 1

(1) ftp://ftp.cuhk.edu.hk/pub/packages/perl/CPAN/
(2) ftp://mirror.communilink.net/CPAN/
(3) ftp://mirrors.neusoft.edu.cn/mirror/cpan/
(4) ftp://mirrors.ustc.edu.cn/CPAN/
(5) ftp://mirrors.xmu.edu.cn/CPAN/
(6) http://mirrors.btte.net/CPAN/
(7) http://mirrors.devlib.org/cpan/
(8) http://mirrors.hust.edu.cn/CPAN/
(9) http://mirrors.sohu.com/CPAN/
Select as many URLs as you like (by number),
put them on one line, separated by blanks, hyphenated ranges allowed
e.g. '1 4 5' or '7 1-4 8'

(此处选择8即可)

相关链接



Debian镜像使用帮助

收录架构

  • i386
  • x86_64
  • source

收录版本

  • stable
  • unstable
  • testing
  • wheezy

使用说明

备份/etc/apt/sources.list文件,选择您正使用的Debian版本,添加灰色框内的内容到/etc/apt/sources.list最前面

选择您的版本:

deb http://mirrors.hust.edu.cn/debian/ version main contrib non-free 
deb-src http://mirrors.hust.edu.cn/debian/ version main contrib non-free

相关链接



Fedora镜像使用帮助

收录架构

  • i686
  • x86_64
  • source

收录版本

  • 15
  • 16
  • 17
  • 18
  • 19
  • Test

使用说明

备份您的/etc/yum.repos.d/fedora.repo和/etc/yun.repos.d/fedora-updates.repo文件,将下边两个文件放到/etc/yum.repos.d目录下。

fedora.repo

[fedora] 
name=Fedora $releasever - $basearch
failovermethod=priority 
baseurl=http://mirrors.hust.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/os/ 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch 
enabled=1 
metadata_expire=7d 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[fedora-debuginfo] 
name=Fedora $releasever - $basearch - Debug
failovermethod=priority 
baseurl=http://mirrors.hust.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/debug/ 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch 
enabled=0 
metadata_expire=7d 
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[fedora-source] 
name=Fedora $releasever - Source
failovermethod=priority 
baseurl=http://mirrors.hust.edu.cn/fedora/linux/releases/$releasever/Everything/source/SRPMS/ 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch 
enabled=0 
metadata_expire=7d 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 

fedora-updates.repo

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority 
baseurl=http://mirrors.hust.edu.cn/fedora/linux/updates/$releasever/$basearch/ 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch 
enabled=1 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[updates-debuginfo] 
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority 
baseurl=http://mirrors.hust.edu.cn/fedora/linux/updates/$releasever/$basearch/debug/ 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch 
enabled=0 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[updates-source] 
name=Fedora $releasever - Updates Source
failovermethod=priority 
baseurl=http://mirrors.hust.edu.cn/fedora/linux/updates/$releasever/SRPMS/ 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch 
enabled=0 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

最后运行yum makecache生成缓存

相关链接



Gentoo镜像使用帮助

收录架构

  • All

使用说明

将如下行添加到/etc/make.conf文件中

GENTOO_MIRRORS="http://mirrors.hust.edu.cn/gentoo/"

相关链接



Gentoo Portage镜像使用帮助

使用说明

将如下行添加到/etc/make.conf文件中

SYNC="rsync://mirrors.hust.edu.cn/gentoo-portage/"

相关链接



Raspbian镜像使用帮助

使用说明

将/etc/apt/sources.list文件改成如下内容:

deb http://mirrors.hust.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.hust.edu.cn/raspbian/raspbian/ wheezy main non-free contrib

相关链接



Ubuntu镜像使用帮助

收录架构

  • All

收录版本

  • Lucid Lynx(10.04)
  • Maverick Meerkat(10.10)
  • Natty Narwhal(11.04)
  • Oneiric Ocelot(11.10)
  • Precise Pangolin(12.04)
  • Quantal Quetzal(12.10)
  • Raring Ringtail(13.04)
  • Saucy Salamander(13.10)
  • Trusty Tahr(14.04)
  • Utopic Unicorn(14.10)

使用说明

手动更改配置文件(需sudo)

/etc/apt/sources.list

在文件最前面添加以下条目(其中的version需要替换为您正在使用的Ubuntu版本代号的名字,用以下按钮选择):

选择您的版本:

deb http://mirrors.hust.edu.cn/ubuntu/ version main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ version-security main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ version-updates main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ version-proposed main restricted universe multiverse
deb http://mirrors.hust.edu.cn/ubuntu/ version-backports main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ version main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ version-security main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ version-updates main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ version-proposed main restricted universe multiverse
deb-src http://mirrors.hust.edu.cn/ubuntu/ version-backports main restricted universe multiverse

相关链接