11 月 262012
 

 

备份当前YUM配置文件

#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

中国科技大学YUM更新源
USTC
mirrors.ustc.edu.cn

CentOS 5
http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
CentOS 6
http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2

更新缓存

[root@com01 ~]# yum makecache 
Loaded plugins: fastestmirror, presto Determining fastest mirrors 
base                                                           | 3.7 kB     00:00 
base/filelists_db                                              | 5.9 MB     00:03 
base/other_db                                                  | 2.6 MB     00:01 
base/group_gz                                                  | 211 kB     00:00 
extras                                                         | 3.5 kB     00:00 
extras/filelists_db                                            | 3.9 kB     00:00 
extras/prestodelta                                             |  863 B     00:00 
extras/other_db                                                | 4.3 kB     00:00 
updates                                                        | 3.5 kB     00:00 
updates/filelists_db                                           | 3.0 MB     00:04 
updates/other_db                                               | 410 kB     00:00 
Metadata Cache Created [root@com01 ~]#

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据