1、下載 CentOS 這個就不多說了
CentOS-6.0-i386-bin-DVD.iso
MD5: 081C77749170C512D25DA3A7459E3336
SHA1: 9A8DFA2B68937372F89BD1CA46FBA7EE71C5262C
2、安裝 CentOS 6 這個也不多說了
禁用 iptables 和 SELinux
shell> chkconfig iptables off && sed -i 's/SELINUX=.*/SELINUX=disabled/' /etc/sysconfig/selinux && reboot
3、上傳 CentOS-6.0-i386-bin-DVD.iso 到安裝了CentOS 6 的主機上去
我放在了下面的位置
/home/iso/CentOS-6.0-i386-bin-DVD.iso
4、掛載
shell> mkdir /media/CentOS && mount -o loop /home/iso/CentOS-6.0-i386-bin-DVD.iso /media/CentOS
5、備份 YUM 配置
shell> cp -a /etc/yum.repos.d /etc/yum.repos.d.bak
6、重命名 CentOS-Base.repo
shell> mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
7、編輯 CentOS-Media.repo
shell> sed -i 's/^ /#/g' /etc/yum.repos.d/CentOS-Media.repo
shell> sed -i 's/gpgcheck=1/gpgcheck=0/' /etc/yum.repos.d/CentOS-Media.repo
shell> sed -i 's/enabled=0/enabled=1/' /etc/yum.repos.d/CentOS-Media.repo
8、安裝 wget
shell> yum -y install wget
9、安裝第三方源
shell> wget http://packages.sw.be/rpmforge-r ... 2-2.el6.rf.i686.rpm
shell> rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
shell> rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm
shell> rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
10、至此,就完成了,你可以嘗試安裝一下ntfs-3g
shell> yum -y install ntfs-3g
等官方的源出來了,只需把備份的YUM配置還原回去就可以了!
上一張圖
