RH desktop 9之後 Rh公司就不再繼續開發免費升級的官方個人桌面版了, 替代品是Fedora 系列

RHEL 企業版要註冊才可以升級 當然這涉及到$的問題...

學校FTP上有CENTOS的鏡像,而CENTOS 是RHEL的一個rebuild 版本.因為RH依然開放企業版
的源碼,那麼CENTOS與RHEL的兼容性就可以保證.
//(Oracle也利用這個推出了個UnbreakableLinx 用RedHat一樣的源代碼,服務相比便宜一般,對RedHat來說是滿尷尬的~~)
CENTOS 版本號對應RHEL的版本號和UPDATE號 例如CENTOS 4.4 對應RHEL 4Update4

需要的rpm包
apt-0.5.15cnc6-4.centos4.src.rpm python-sqlite-1.1.6-1.i386.rpm
python-urlgrabber-2.9.6-2.noarch.rpm
centos-yumconf-4-4.5.noarch.rpm sqlite-3.2.2-1.i386.rpm
python-elementtree-1.2.6-4.i386.rpm yum-2.4.3-1.c4.noarch.rpm
版本號貌似比較老
具體的包都可以在http://rpm.pbone.net/這裡查詢下載到

yum-*.noarch.rpm是關鍵 倚賴其他幾個包
都安裝之
然後配置 /etc/yum.repos.d/CentOS-Base.repo

我的內容為:
[base]
name=CentOS-4 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever4&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/4.4/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#released updates
[update]
name=CentOS-4 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=update
s
baseurl=http://ftp.sjtu.edu.cn/centos/4.4/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#packages used/produced in the build but not released
[addons]
name=CentOS-4 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons

baseurl=http://ftp.sjtu.edu.cn/centos/4.4/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that may be useful
[extras]
name=CentOS-4 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras

baseurl=http://ftp.sjtu.edu.cn/centos/4.4/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-4 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centos
plus
baseurl=http://ftp.sjtu.edu.cn/centos/4.4/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#contrib - packages by Centos Users
[contrib]
name=CentOS-4 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contri
b
baseurl=http://ftp.sjtu.edu.cn/centos/4.4/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4


反正#都是注消掉了,就不管了...
我的版本是RHEL 4update4 所以用4.4目錄的東西.
然後
#yum update

就可以自由升級了.

添加apt 升級
這時候就用到前面那個apt*.rpm了
安裝後配置

我的list 是:
rpm http://ftp.sjtu.edu.cncentos/4.4/apt/i386 os addons updates extras contri
b centosplus fasttrack csgfs
rpm http://ftp.yz.yamagata-u.ac.jp/pub/linux/centos/4.4/apt/i386 os addons upd
ates extras contrib centosplus fasttrack csgfs

下面一個是日本的一個鏡像,貌似速度還不錯.
然後就可以用apt 利用centos資源升級了.

//以下為改進意見.
===================================================
//****
pupilzeng@SjtuBBS

有個建議,最好使用$releasever代替4.4
這樣,4.5,4.6……出來之後,也不用更改這個文件。

//****
qqh@SjtuBBS

告訴你一個簡單點的辦法...
把/etc/yum.repos.d/下面文件中的mirror.centos.org都替換成ftp.sjtu.edu.cn
然後運行yum update...
4.0以前要自己手動添加數字簽名,4.0以後不用了
===================================================
arrow
arrow
    全站熱搜

    Aminzai 發表在 痞客邦 留言(0) 人氣()