在OpenSuSE/SuSE下,我如何改變yum的儲藏庫? |
1. 為了避免混淆,先清除/etc/yum.repos.d/下所有的*.rep:
rm -f /etc/yum.repos.d/*
2. 修改/usr/share/drbl/setup/yum-repos/下的*.repo, 把opensuse*.repo或drbl*.repo改成你要的。例如,你的套件是OpenSuSE 10.2,那可以類似這樣修改/usr/share/drbl/setup/yum-repos/opensuse-updates-10.2.repo:
--------------------------------------------------------------
[updates]
name=OpenSuSE $releasever updates packages
baseurl=http://ftp.twaren.net/Linux/SuSE/update/$releasever/
enabled=1
gpgcheck=1
--------------------------------------------------------------
以及/usr/share/drbl/setup/yum-repos/opensuse-10.2.repo:
--------------------------------------------------------------
[base]
name=OpenSuSE $releasever packages
baseurl=http://ftp.twaren.net/Linux/OpenSuSE/distribution/$releasever/repo/oss/suse/
enabled=1
gpgcheck=1
--------------------------------------------------------------
|
|