2013年1月9日星期三

Linux – Tips and Tricks


You will need to reinstall rpm as it looks like rpm is damaged.

  • The rpm package only comes in .rpm format so will need to use the rpm2cpio command to install. rpm2cpio can be copied from another machine
    • if you dont have it.
    •      mkdir -p /var/tmp/xxx
    •      cd /var/tmp/xxx
    •      rpm2cpio rpm-4.0.3-1.03.6x.*.rpm | cpio -dim
    •      find . -type d -exec chmod 755 {} ;
    •      tar cf - ./usr ./etc | (cd /; tar xvf -)
  • Then do "rpm --rebuilddb" to fix your database.

没有评论:

发表评论