Linux tip, Fedora tip / howto: fixing a broken rpm

 
back to notes and tips index

Try my online puzzle page with Calcudoku, Killer Sudoku and online Sudoku.

fixing a broken rpm

This is for when somehow your rpm installation is broken, and you'd like to use rpm to fix it.

  • boot from your installation CD/DVD, type linux rescue at the prompt
  • (less is in /usr/bin)
  • mount your root partition at /hd (in this example it's at /dev/hda5, and it has an ext2 filesystem):
    cd /
    mkdir hd
    mount -t ext2 /dev/hda5 /hd
    rpm --root /hd --nodeps -e rpm
    cd /mnt/source/RedHat/RPMS
    rpm --root /hd -i rpm-4.0.2.i386.rpm
  • remove CD/DVD, reboot


← back to notes and tips index
Please do not copy the text of this tip (© Patrick Min) to your web site.