redhat as3下做yum server的问题

昨天在公司用一台as3的机器搭建一个yum server玩儿

原来是打算用来升级Fedora用的

按照一般方式

找了些文档

就开始做

先去官方站点下载yum装上(因为redhat没有发布yum的rpm包)

http://linux.duke.edu/projects/yum/download/2.2/yum-2.2.2-1.src.rpm

把这个当下来

rpmbuild –rebuild一下然后装上

看文档说yum-arch dir就可以了

做yum-arch的时候系统有一句提示:

THIS PROGRAM IS DEPRECATED!

You should be generating xml metadata instead.

Please see http://linux.duke.edu/metadata

当时没注意

我在Fedora Core 3的机器上配好yum.conf后

执行yum update的时候

却发现系统报一堆repodata目录下的东西找不到的错误

于是再回头yum-arch的时候才留意到这个错误

按照地址进去

发现要装一个createrepo的软件

Fedora自己带的有

但是as3没有

于是http://linux.duke.edu/projects/metadata/generate/createrepo-0.4.3-1.src.rpm

rpmbuild –rebuild了一把,装上

再个createrepo dir;yum-arch dir

这下再在Fedora Core 3上yum update再不报错了

这个问题在所有的中文文档上都没有提到过

看来有的时候还是需要自己摸索

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word