本地的配置文件為local.repo,新建的配置文件需要注意,“[]”里面的名字需要注意順序,如本地local.repo文件里面的為[development],則新建的配置文件需要優(yōu)先被建立緩存的時(shí)候,需要在[]中的名字優(yōu)先被讀取,如[a],[develop]……等等
yum緩存建立的順序?qū)е挛募惭b失敗,下面是正確的
[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
本地有兩個(gè)*.repo文件時(shí),新的repo文件中[]里面的內(nèi)容建議比老repo文件中的[]里面的內(nèi)容簡短,使新repo能先被建立緩存