« I'm | 首 页 | 杭州旅游 »

2007 年 03 月 08 日

手动装 rpm

kreny 发表于 March 8, 2007 10:12 AM | 分类: Server Technol. RSS2

以前装错了rpm的版本,今天又犯了个很SB的错误,将rpm 给删了,没办法,只能手动装了。

  • rpm主页:http://wiki.rpm.org/GetSource
  • 下载 rpm 的 source 需要 hg 来 clone 他的 repository, 发现没有安装 hg ,于是就去安装 mercurial。

  • mercurial主页:http://www.selenic.com/mercurial/

  • UnixInstall of Mercurial: http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall

    又发现需要Python 2.3以上的版本,于是又去升级 python

    ./configure --enable-unicode=ucs4
    make
    make install
    下载 rpm source:
    hg clone http://hg.rpm.org/
    接下来就 configure 和 make && make install 了。

    备注:如何解压 rpm 文件中的 files?

    rpm2cpio file.rpm | cpio -div

    (END)



    自动链接单元:
    评论: