-   Linux - Software (
-   -   Yum Erase - Many packages deleted (

vvenomouss 11-08-2011 08:23 AM

Yum Erase - Many packages deleted
Hi I did a

yum erase python

i resulted in deleting over 300 packages, I found out the server was responding weird to common commands so I stopped the erasing process but it had removed 100+ packages by then.

Now my server wont recognize common commands like ll ls etc neither do my websites work.

Please helpout.

colucix 11-08-2011 09:04 AM

python is a mandatory software for most recent systems. A lot of applications are actually python scripts, even yum itself! If the erasing process didn't remove yum and related stuff, your best bet is to check the file /var/log/yum.log to see what packages have been erased and reinstall them all.

vvenomouss 11-08-2011 10:09 AM

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: 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? :confused:

TobiSGD 11-08-2011 10:20 AM


Originally Posted by vvenomouss (Post 4518908)
I guess I have really messed up the system. Any suggestions? :confused:

Restore the machine from your backup. Would be the fastest and easiest way to resolve the issues.
I have not used RPM-based distros for some time (last one was Fedora 3, I think), but doesn't yum show what it will delete when you issue such a command and ask for confirmation?

John VV 11-08-2011 01:27 PM

python 2.4 ?

what OS is this ? RHEL4 or 5.0

reinstall the OS but also upgrade it to a current OS
-- i am assuming that a old and supported OS was running
upgrade to
Centos 6 ( rhel 6.1 )

vvenomouss 11-09-2011 03:49 AM

I am on CentOS 5.

I had no backups, so I did a clean installation. The main problem is now to copy all the sites & databases etc but it can be done.

Thankyou all for your help.

All times are GMT -5. The time now is 08:27 AM.