在不重新安裝整個系統下,將既有的 CentOS 6.x 轉換成 Scientific Linux。
rpm -ivh http://ftp.scientificlinux.org/linux/scientific/6x/i386/os/Packages/yum-conf-sl6x-1-2.noarch.rpm processor=`uname -i` centos=${processor:1:3} if [ $centos != 386 ] ; then rpm -ivh --force http://ftp.scientificlinux.org/linux/scientific/6x/x86_64/os/Packages/sl-release-6.5-1.x86_64.rpm else rpm -ivh --force http://ftp.scientificlinux.org/linux/scientific/6x/i386/os/Packages/sl-release-6.5-1.i686.rpm fi sed -i 's|centos-release|sl-release|' /etc/yum.conf sed -i 's|exclude=centos|\#exclude=centos|' /etc/yum.conf yum -y erase centos-release yum -y clean all yum -y distro-sync yum -y reinstall `rpm -qa --qf "%{NAME} %{VENDOR}\n"|grep CentOS|awk '{print $1}'` cd /boot/grub mv splash.xpm.gz /root/splash.xpm.gz.centos wget http://pbxinaflash.com/splash.xpm.gz chmod 644 splash.xpm.gz chattr -i /etc/pbx/.version echo "3.0.6.5" > /etc/pbx/.version chattr +i /etc/pbx/.version reboot
Images 0 | ||
---|---|---|
No images to display in the gallery. |