repo文件創建的錯誤分析

本地的配置文件爲local.repo,新建的配置文件需要注意,“[]”裏面的名字需要注意順序,如本地local.repo文件裏面的爲[development],則新建的配置文件需要優先被建立緩存的時候,需要在[]中的名字優先被讀取,如[a],[develop]......等等

yum緩存建立的順序導致文件安裝失敗,下面是正確的

[root@localhost yum.repos.d]# yum -y clean all
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: devel development
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@localhost yum.repos.d]# yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
devel                                                                | 2.9 kB     00:00 ... 
devel/filelists_db                                                   |  33 kB     00:00 ... 
devel/primary_db                                                     |  68 kB     00:00 ... 
devel/other_db                                                       |  17 kB     00:00 ... 
development                                                          | 4.0 kB     00:00 ... 
development/group_gz                                                 | 220 kB     00:00 ... 
development/filelists_db                                             | 5.8 MB     00:00 ... 
development/primary_db                                               | 4.4 MB     00:00 ... 
development/other_db                                                 | 2.7 MB     00:00 ... 
Metadata Cache Created

 本地有兩個*.repo文件時,新的repo文件中[]裏面的內容建議比老repo文件中的[]裏面的內容簡短,使新repo能先被建立緩存

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章