This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
aquatower | 7 July,2009 0:51
Bookmark: HemiDemi MyShare Baidu Google Bookmarks Yahoo! My Web Del.icio.us Digg technorati furl Bookmark to:YouPush Bookmark to:你推我報

Lab1: Server1部署(1)
Target: Create a private repository


安裝Rhel5

1. 確認Hardware是否有支援(VGA, Ethernet),先到Redhat網站上去查, Intel的主機版大部份都有支援
小弟選用的Intel D201GLY2主機版

2. 光碟片Rhel5, 檢查光碟是否有損壞

3. 第一次安裝使用圖形介面安裝,記得要把Ftp Server服務安裝上去,安裝完成後將光碟上的資料全部複製到 /var/ftp/pub/RHEL5下

4. 在/etc/yum.repos.d/有rhel-debuginfo.repo, 複製為server1.repo, 用vi編輯

#vi /etc/yum.repos.d/server1.repo
[base]
name=Red Hat Enterprise Linux 5Server - base
baseurl=ftp://192.168.0.254/pub/RHEL5/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[VT]
name=Red Hat Enterprise Linux 5Server - VT
baseurl=ftp://192.168.0.254/pub/RHEL5/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

5. 此時用#yum list, 應該可以查到*.rpm的檔案

6. 建立清單 [repomd.xml]

#cp /var/ftp/pub/RHEL5/repodata/*comps*.xml /tmp
#createrepo -g /tmp/*comps*.xml /var/ftp/pub/RHEL5

*如果出現找不到createrepo指令, 補裝createrepo套件
[root@server1 yum.repos.d]# yum list|grep createrepo
This system is not registered with RHN.
RHN support will be disabled.
createrepo.noarch 0.4.11-3.el5 installed

7. 測試:圖形介面下 [Applications]--[Add/Remove Software]
有出現套件,代表安裝成功啦!

就可以把server1當成Yum repository, 後續要安裝套件都指向它


Comment

Trackback

Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.