shell># vim /etc/yum.repos.d/CentOS-Base.repo
[base] name=CentOS-$releasever - Base #註解mirrorlist這行 #mirrorlist=http://mirrorlist.centos.org/?release=$releasever \ &arch=$basearch&repo=os #改用baseurl,並設定離你最近的鏡像站台,我個人喜歡使用hinet baseurl=http://mirror01.idc.hinet.net/centos/$releasever \ /os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates #[updates]區段同上方式修改 #mirrorlist=http://mirrorlist.centos.org/?release=$releasever \ &arch=$basearch&repo=updates baseurl=http://mirror01.idc.hinet.net/centos/$releasever \ /updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #[extras]區段同上方式修改 #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras baseurl=http://mirror.centos.org/centos/$releasever \ /extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
轉貼至http://beakdoosan.blogspot.tw/
沒有留言:
張貼留言