获取地址:http://mirrors.163.com/.help/centos.htm
选择对应的Centos版本,点击右键复制下载链接,然后用wget下载镜像
把下好的镜像移动到/etc/yum.repos.d/
生成缓存
执行 yum list 配置
- #网易的源(163源,无论是不是教育网,速度都很快)
- deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
- deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
- deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
- deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
- deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
- deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
- deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
- #搜狐的源(sohu 源今天还没有更新,不过应该快了)
- deb http://mirrors.sohu.com/ubuntu/ quantal main restricted
- deb-src http://mirrors.sohu.com/ubuntu/ quantal main restricted
- deb http://mirrors.sohu.com/ubuntu/ quantal-updates main restricted
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-updates main restricted
- deb http://mirrors.sohu.com/ubuntu/ quantal universe
- deb-src http://mirrors.sohu.com/ubuntu/ quantal universe
- deb http://mirrors.sohu.com/ubuntu/ quantal-updates universe
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-updates universe
- deb http://mirrors.sohu.com/ubuntu/ quantal multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ quantal multiverse
- deb http://mirrors.sohu.com/ubuntu/ quantal-updates multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-updates multiverse
- deb http://mirrors.sohu.com/ubuntu/ quantal-backports main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-backports main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ quantal-security main restricted
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-security main restricted
- deb http://mirrors.sohu.com/ubuntu/ quantal-security universe
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-security universe
- deb http://mirrors.sohu.com/ubuntu/ quantal-security multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ quantal-security multiverse
- deb http://extras.ubuntu.com/ubuntu quantal main
- deb-src http://extras.ubuntu.com/ubuntu quantal main
- #阿里云
- deb http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
- deb http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ quantal main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ quantal-security main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ quantal-updates main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ quantal-proposed main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ quantal-backports main restricted universe multiverse
- #台湾源(台湾的ubuntu 更新源还是很给力的)
- deb http://tw.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
- deb-src http://tw.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
- deb http://tw.archive.ubuntu.com/ubuntu/ quantal-security universe main multiverse restricted
- deb-src http://tw.archive.ubuntu.com/ubuntu/ quantal-security universe main multiverse restricted
- deb http://tw.archive.ubuntu.com/ubuntu/ quantal-updates universe main multiverse restricted
- deb-src http://tw.archive.ubuntu.com/ubuntu/ quantal-updates universe main multiverse restricted
- #ubuntu.cn99.com源(推荐):
- deb http://ubuntu.cn99.com/ubuntu/ quantal main restricted universe multiverse
- deb http://ubuntu.cn99.com/ubuntu/ quantal-updates main restricted universe multiverse
- deb http://ubuntu.cn99.com/ubuntu/ quantal-security main restricted universe multiverse
- deb http://ubuntu.cn99.com/ubuntu/ quantal-backports main restricted universe multiverse
- deb http://ubuntu.cn99.com/ubuntu-cn/ quantal main restricted universe multiverse
- #电子科技大学
- deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal main restricted universe multiverse
- deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
- deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
- deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
- deb http://ubuntu.uestc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
- deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal main restricted universe multiverse
- deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
- deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
- deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
- deb-src http://ubuntu.uestc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
- #中国科技大学
- deb http://debian.ustc.edu.cn/ubuntu/ quantal main restricted universe multiverse
- deb http://debian.ustc.edu.cn/ubuntu/ quantal-backports restricted universe multiverse
- deb http://debian.ustc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
- deb http://debian.ustc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
- deb http://debian.ustc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
- deb-src http://debian.ustc.edu.cn/ubuntu/ quantal main restricted universe multiverse
- deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
- deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
- deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
- deb-src http://debian.ustc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
- #北京交通大学
- deb http://mirror.bjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
- deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
- deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
- deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
- deb http://mirror.bjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
- deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
- deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
- deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
- deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
- deb-src http://mirror.bjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
- #上海交通大学(上海交大源,教育网的速度不用说了)
- deb http://ftp.sjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
- deb http://ftp.sjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
- deb http://ftp.sjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
- deb http://ftp.sjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
- deb http://ftp.sjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
- deb http://ftp.sjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
- deb-src http://ftp.sjtu.edu.cn/ubuntu/ quantal main multiverse restricted universe
- deb-src http://ftp.sjtu.edu.cn/ubuntu/ quantal-backports main multiverse restricted universe
- deb-src http://ftp.sjtu.edu.cn/ubuntu/ quantal-proposed main multiverse restricted universe
- deb-src http://ftp.sjtu.edu.cn/ubuntu/ quantal-security main multiverse restricted universe
- deb-src http://ftp.sjtu.edu.cn/ubuntu/ quantal-updates main multiverse restricted universe
- deb http://centos.bitcomm.cn/ubuntu natty main restricted universe multiverse
- deb http://centos.bitcomm.cn/ubuntu natty-security main restricted universe multiverse
- deb http://centos.bitcomm.cn/ubuntu natty-updates main restricted universe multiverse
- deb http://centos.bitcomm.cn/ubuntu natty-backports main restricted universe multiverse
- deb http://centos.bitcomm.cn/ubuntu natty-proposed main restricted universe multiverse
- deb-src http://centos.bitcomm.cn/ubuntu natty main restricted universe multiverse
- deb-src http://centos.bitcomm.cn/ubuntu natty-security main restricted universe multiverse
- deb-src http://centos.bitcomm.cn/ubuntu natty-updates main restricted universe multiverse
- deb-src http://centos.bitcomm.cn/ubuntu natty-backports main restricted universe multiverse
- deb-src http://centos.bitcomm.cn/ubuntu natty-proposed main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ oneiric-proposed main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ oneiric-proposed main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
- #下面是source原来的,不动他
- #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
- #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
- #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
- # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
- # newer versions of the distribution.
- deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted
- ## Major bug fix updates produced after the final release of the
- ## distribution.
- deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted
- ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
- ## team. Also, please note that software in universe WILL NOT receive any
- ## review or updates from the Ubuntu security team.
- deb http://cn.archive.ubuntu.com/ubuntu/ precise universe
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise universe
- deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates universe
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates universe
- ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
- ## team, and may not be under a free licence. Please satisfy yourself as to
- ## your rights to use the software. Also, please note that software in
- ## multiverse WILL NOT receive any review or updates from the Ubuntu
- ## security team.
- deb http://cn.archive.ubuntu.com/ubuntu/ precise multiverse
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise multiverse
- deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates multiverse
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates multiverse
- ## N.B. software from this repository may not have been tested as
- ## extensively as that contained in the main release, although it includes
- ## newer versions of some applications which may provide useful features.
- ## Also, please note that software in backports WILL NOT receive any review
- ## or updates from the Ubuntu security team.
- deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
- deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
- deb http://security.ubuntu.com/ubuntu precise-security main restricted
- deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
- deb http://security.ubuntu.com/ubuntu precise-security universe
- deb-src http://security.ubuntu.com/ubuntu precise-security universe
- deb http://security.ubuntu.com/ubuntu precise-security multiverse
- deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
- ## Uncomment the following two lines to add software from Canonical's
- ## 'partner' repository.
- ## This software is not part of Ubuntu, but is offered by Canonical and the
- ## respective vendors as a service to Ubuntu users.
- # deb http://archive.canonical.com/ubuntu precise partner
- # deb-src http://archive.canonical.com/ubuntu precise partner
- ## This software is not part of Ubuntu, but is offered by third-party
- ## developers who want to ship their latest software.
- deb http://extras.ubuntu.com/ubuntu precise main
- deb-src http://extras.ubuntu.com/ubuntu precise main