以前装错了rpm的版本,今天又犯了个很SB的错误,将rpm 给删了,没办法,只能手动装了。
下载 rpm 的 source 需要 hg 来 clone 他的 repository, 发现没有安装 hg ,于是就去安装 mercurial。
UnixInstall of Mercurial: http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall
又发现需要Python 2.3以上的版本,于是又去升级 python。
./configure --enable-unicode=ucs4下载 rpm source:
make
make install
hg clone http://hg.rpm.org/接下来就 configure 和 make && make install 了。
备注:如何解压 rpm 文件中的 files?
rpm2cpio file.rpm | cpio -div
(END)