centos yum設定的問題
問題有點多,麻煩大大能耐心解答一下 1.addons, extras, centosplus這三個大項是在設定蝦米? 2.$releasever這個東西看起來應該是系統版本的變數,那可以改成5.4.XXX之類的版本嗎? 3.mirrorlist這個應該是鏡像站台的位置,而baseurl應該是檔案庫的位置,那為何設定了檔 案庫的位置卻要把鏡像站台給註解掉呢?不能兩個並存嗎? 4.arch=$basearch的意思? 5.?release=$releasever的意思? 6.repo=os&cc=tw的意思? 下面這個檔案是網路上的大大修改過的,將檔案庫改到義守大學 [base] name=CentOS-$releasever – Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&cc=tw baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever – Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&cc=tw baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5 #packages used/produced in the build but not released [addons] name=CentOS-$releasever – Addons baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/addons/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons&cc=tw gpgcheck=1 gpgkey=http://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-$releasever – Extras baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/extras/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&cc=tw gpgcheck=1 gpgkey=http://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever – Plus #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&cc=tw baseurl=http://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5 這是套件有關於base的預設值 [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&cc=tw #baseurl=http://mirrorlist.centos.org/CentOS/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 |
沒有留言:
張貼留言