Thanks for your reply, yeah i was able to view all the deleted packages from the log. However whatever package I try installing, I get a message:
/usr/bin/python: error while loading shared libraries: libpython2.4.so.1.0: cannot open shared object file: No such file or directory
So I tried to install python 2.4, but the configure command will give errors as:
./configure: line 93: chmod: command not found
./configure: line 99: rm: command not found
./configure: line 177: chmod: command not found
configure: error: cannot create configure.lineno; rerun with a POSIX shell
I guess I have really messed up the system. Any suggestions?