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

2007 年 03 月 08 日

手动装 rpm

| 分类: 服务器技术 Server Tech. |

以前装错了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)

    发表评论

    (如果您还为在此成功留言,也许是因为需要管理员逐一审核留言内容后放可看到您的评论。请稍后并感谢您的耐心等待。)

    阅览更多文章请访问 首页过去的存档