Cd Chen's Services

ba ba ba la~~

建置yum Server的問題

Daer CD 老師
請問一下, 我在實做建置yum Server時
執行的步驟如下:
1.將五片安裝光碟複製至 /var/ftp/pub/
2.使用 rpm -ivh /var/ftp/pub/Server/createrepo-0.4.4-2.fc6.noarch.rpm
3.#createrepo /var/ftp/pub/ (產出 repodata目錄) 螢幕有秀 1~2208/2208
4.#ls /var/ftp/pub/repodata/ (確認有.gz檔及xml檔)
5.將目錄切至 /etc/yum.repos.d/ #cp rhel-debug.repo server1.repo
6.編輯server1.repo
[server1]
name=server1
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-pgp/RPM-PGP-KEY-redhat-release
# ------------------------------------不曉得,動作對不對?
因為 #yum install xen (很像有成功安裝 按了兩次"y" 1~7/7)
- #yum remove xen也很像 沒問題
but,有時候會安裝其他Package時會出現 This system is not registered with RHN.
RHN support will be disable.
有時侯會找不到檔案 , 但用find 搜索 可以找到檔案在/var/ftp/pub/Server/*.rpm
就改用 #rpm -ivh //var/ftp/pub/Server/*.rpm 安裝.
不曉得那裡導致"不順" ?

這篇內容的 Trackback 網址:

http://www.cdchen.idv.tw/trackback/515