Recover CentOS missing YUM and RPM

view full story

http://serverfault.com – This is the history: I have (or had), a linux box with CentOS 5.9 and a pre installed LAMP configuration. It was working but was too out of date, for instance mysql was version 4. So I decided to upgrade everything with yum. Weirdly my sqlite was 3.6 what is newer that 3.3 that is listed as a dependence for newer PHP, Apache and subversion, so yum stopped upgrade and complained about that. Then I did a very wrong thing: I used yum erase sqlite to remove the old (yet newer), sqlite from my system. At this point yum removed sqlite and ALL other packages that have it as a dependence. This incl (HowTos)