阿里centos yum源 源 阿里好还是163好

Centos6.5 更新yum源 - 简书
Centos6.5 更新yum源
国内比较好的yum源主要是阿里云、163以及搜狐的,更新yum的命令如下:
1. 进入yum源配置目录
cd /etc/yum.repos.d
2. 备份原来的yum源,便于恢复,改啥都得留个备份,万一玩儿了还能恢复
mv CentOS-Base.repo CentOS-Base.repo.bk
3. 下载新的CentOS-Base.repo 到/etc/yum.repos.d/如下的源用一个就好,三条命令选其一
//更新为阿里云的源
wget -O /etc/yum.repos.d/CentOS-Base.repo /repo/Centos-6.repo
//更新为163的源
wget -O /etc/yum.repos.d/CentOS-Base.repo /.help/CentOS6-Base-163.repo
//更新为搜狐的源
wget -O /etc/yum.repos.d/CentOS-Base.repo /help/CentOS-Base-sohu.repo
4. 运行yum makecache生成缓存
yum clean all
yum makecache
技术也关注用户体验温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
吾生有涯,而知无涯……
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
此系统为CD版本,所以基本是属于最小化安装版本。现将系统默认源更换成网易源,保证下载软件的速度。步骤如下:1、下载新源及将本地源备份[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost ~]# wget /.help/CentOS6-Base-163.repo[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak[root@localhost ~]# mv CentOS6-Base-163.repo CentOS-Base.repo2、yum源更新[root@localhost ~]# yum clean all && yum makecache && yum update -y3、完成。yum 命令工具使用举例 1、升级系统[root@localhost ~]#yum update2、安装指定的软件包[root@localhost ~]# yum -y install mysql-server3、升级指定的软件包[root@localhost ~]# yum -y update mysql4、卸载指定的软件包[root@localhost ~]# yum -y remore mysql5、查看系统中已经安装的和可用的软件组,对于可用的软件组,你可以选择安装[root@localhost ~]# yum grouplist6、安装上一个命令中显示的可用的软件组中的一个软件组[root@localhost ~]# yum -y groupinstall Emacs7、更新指定软件组中的软件包[root@localhost ~]# yum -y groupupdate Emacs8、卸载指定软件组中的软件包[root@localhost ~]# yum -y groupremove Emacs9、清除缓存中的rpm 头文件和包文件[root@localhost ~]# yum clean all10、搜索相关的软件包[root@localhost ~]# yum -y search Emacs11、显示指定软件包的信息[root@localhost ~]# yum info Emacs12、查询指定软件包的依赖包[root@localhost ~]# yum deplist emacs13、列出所有以 yum 开头的软件包[root@localhost ~]# yum list yum\*14、列出已经安装的但是不包含在资源库中的rpm 包[root@localhost ~]#&# yum list extras转自:
阅读(6966)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'CentOS更换网易源小记(yum)',
blogAbstract:'系统版本:\tCentOS-6.4-x86_64-minimal\t\t此系统为CD版本,所以基本是属于最小化安装版本。现将系统默认源更换成网易源,保证下载软件的速度。步骤如下:1、下载新源及将本地源备份[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost ~]# wget /.help/CentOS6-Base-163.repo[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak[root@localhost ~]# mv CentOS6-Base-163.repo CentOS-Base.repo2、yum源更新[root@localhost ~]# yum clean all && yum makecache && yum update -y',
blogTag:'centos,yum',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:7,
publishTime:9,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:1,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'吾生有涯,而知无涯……',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}您的位置: >
指定CentOS yum源一定要选是下载最快的源
[导读]指定yum 源,不一定是Ping最快的源,但一定是下载最快的源 今天新装了一个CentOS的系统,习惯性的更新源,发现163或是sohu并不是最快的源,实际测试这2个是下载最快的约1M/S左右,但ping的time并不是最快的,CentOS给我指定...
指定yum 源,不一定是Ping最快的源,但一定是下载最快的源
今天新装了一个CentOS的系统,习惯性的更新源,发现163或是sohu并不是最快的源,实际测试这2个是下载最快的约1M/S左右,但ping的time并不是最快的,CentOS给我指定了一个.tw的源...下载只有22K/S,昏死
yum clean all 清除yum所有缓存
更新yum更新源,加入163和sohu的
cd /etc/yum.repos.d/
wget /.help/CentOS-Base-163.repo
wget /help/CentOS-Base-sohu.repo
yum makecache
如果给出的源不是163或是sohu,按2次ctrl+c取消,进行以下操作
既然你骗我,那我也骗骗你.哈哈
vi /var/cache/yum/timedhosts.txt
将163或是sohu,想用哪一个就把他后面的数改的比其他后面的数小就行,比如我的
centos. 0.8
ftp.tcc.edu.tw 0.1
centos.tt.co.kr 0.7
centos. 0.9
ftp.twaren.net 0.3
mirror01.idc.hinet.net 0.8
ftp.stu.edu.tw 0.
ftp.isu.edu.tw 0.1
ftp.nsysu.edu.tw 0.2
mirror. 0.3
我把sohu的改成了0.002 哈哈
yum makecache
转载请注明来源:
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系我们,我们会尽快予以更正。
上一篇:下一篇:
了解这些字:
··········
··········
··········
··········CentOS镜像使用帮助
CentOS镜像使用帮助
每4小时更新一次
首先备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
运行以下命令生成缓存
yum clean all
yum makecache

我要回帖

更多关于 阿里centos yum源 的文章

 

随机推荐