yum 镜像
来源:互联网 发布:hany是什么牌子 知乎 编辑:程序博客网 时间:2024/04/24 03:14
使用阿里云镜像服务器
最近本机访问 163.com
的 CentOS
镜像比较不稳定,体现在 ping 很低,但是 HTTP 连接很慢,yum
的 fastestmirror
也不太理想,所以一般都禁用之。
发现阿里云的镜像服务器,立马换了,便秘立刻就通了。
yum 镜像
官方源镜像
123456
# 禁用 fastestmirror 插件sed -i.backup 's/^enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf# 备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup# 使用阿里云镜像wget -O /etc/yum.repos.d/CentOS-Base-aliyun.repo http://mirrors.aliyun.com/repo/Centos-6.repo
EPEL 镜像
1234567891011121314
# 安装 EPEL 源wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -Uvh remi-release-6*.rpm epel-release-6*.rpm# 使用阿里云镜像if [[ ! -f /etc/yum.repos.d/epel.repo.backup ]]; thenmv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup 2>/dev/null || :fiif [[ ! -f /etc/yum.repos.d/epel-testing.repo.backup ]]; thenmv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup 2>/dev/null || :fiwget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
PyPi 镜像
12345678910111213141516
mkdir -p ~/.piptouch ~/.pip/pip.confsed -i.backup -r \'s/^index-url\s*=\s*.+$/index-url = http:\/\/mirrors.aliyun.com\/pypi\/simple\//' \~/.pip/pip.conf# If file not changed, write contents back to pip.confdiff "~/.pip/pip.conf" "~/.pip/pip.conf.backup" &> /dev/nullif [ $? -eq 0 ]; thencat > ~/.pip/pip.conf <<EOF[global]index-url = http://mirrors.aliyun.com/pypi/simple/EOFfi
RubyGems 镜像
12
gem source -r https://rubygems.org/gem source -a http://mirrors.aliyun.com/rubygems/
yum 清缓存和更新缓存
yum clean allyum makecachehttp://mirrors.163.com/.help/centos.html
0 0
- yum 镜像
- yum镜像失败
- yum镜像安装kvm
- yum国内镜像配置
- yum国内镜像配置
- 更改centos yum 成中国镜像加快yum速度
- 修改CentOS6.5yum镜像为163镜像
- Fedora7 yum镜像地址的修改
- Centos YUM源 中国科技大学镜像
- svn nginx php apc yum 镜像
- CentOS系统 yum 国内镜像
- 虚拟机镜像文件yum配置
- YUM源设置为网易镜像
- yum源无法解析镜像
- Centos yum源服务器国内镜像
- 设置yum国内的镜像站点
- centos5.1修改yum的源为国内镜像
- Vmware上Centos5.5 安装本地镜像yum
- Kafka 学习笔记(1)
- jboss 4.2.2只能localhost访问 不能通过ip访问解决办法
- iOS开发系列课程(09) --- 滚动视图
- hadoop之yarn状态机模型
- Java中泛型的理解(三)
- yum 镜像
- 引用计数型指针的的简单实现
- 【坑爹】mktime中的 tm_isdst解决办法
- C/C++之数组与指针关系-全解全息
- cin不能输入空格
- Windows下使用C++获取目录及子目录下所有文件
- MSChart图表控件使用说明介绍
- 【bzoj3201】【花神的浇花集会】【切比雪夫距离】
- MyEclipse使用手册(详细版)