linux源

/etc/apt/sources.list

deb http://cn.archive.ubuntu.com/ubuntu/precise main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu/precise-security main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu/precise-updates main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu/precise-backports main restricted universe multiverse##测试版源

deb http://cn.archive.ubuntu.com/ubuntu/precise-proposed main restricted universe multiverse

# 源码

deb-src http://cn.archive.ubuntu.com/ubuntu/precise main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu/precise-security main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu/precise-updates main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu/precise-backports main restricted universe multiverse##测试版源

deb-src http://cn.archive.ubuntu.com/ubuntu/precise-proposed main restricted universe multiverse

# Canonical 合作伙伴和附加

deb http://archive.canonical.com/ubuntu/precise partner

deb http://extras.ubuntu.com/ubuntu/precise main

yum源

第一步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/

CentOS 5

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

CentOS 6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

第二步:运行yum makecache生成缓存

yum clean all

yum makecache

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容