RedHat Linux安裝CentOS YUM

stonebox1122發表於2015-03-01

1 在開源映象站點下載CentOSrepo檔案

[root@bogon ~]# cd /etc/yum.repos.d/

[root@bogon yum.repos.d]# wget

 

2 修改CentOSrepo檔案

[root@bogon yum.repos.d]# vim /etc/yum.repos.d/CentOS6-Base-163.repo

:g/$releasever/s//6/g

:wq

 

3 生成YUM快取。

[root@bogon yum.repos.d]# yum makecache

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager

Updating certificate-based repositories.

base                                                               | 3.7 kB     00:00    

base/group_gz                                                      | 220 kB     00:00    

base/filelists_db                                                  | 5.9 MB     00:09    

base/primary_db                                                    | 4.4 MB     00:07    

base/other_db                                                      | 2.8 MB     00:15    

extras                                                             | 3.4 kB     00:00    

extras/filelists_db                                                |  11 kB     00:00    

extras/prestodelta                                                 |  907 B     00:00    

extras/primary_db                                                  |  19 kB     00:00    

extras/other_db                                                    | 5.8 kB     00:00    

updates                                                            | 3.4 kB     00:00    

updates/filelists_db                                               | 1.9 MB     00:03    

updates/prestodelta                                                | 297 kB     00:00    

updates/primary_db                                                 | 3.2 MB     00:05    

updates/other_db                                                   |  26 MB     00:58    

Metadata Cache Created

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28536251/viewspace-1444918/,如需轉載,請註明出處,否則將追究法律責任。

相關文章