LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-08-2011, 08:23 AM   #1
vvenomouss
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 11-08-2011, 09:04 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
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.
 
Old 11-08-2011, 10:09 AM   #3
vvenomouss
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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?
 
Old 11-08-2011, 10:20 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Quote:
Originally Posted by vvenomouss View Post
I guess I have really messed up the system. Any suggestions?
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?
 
Old 11-08-2011, 01:27 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,696

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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 )
 
Old 11-09-2011, 03:49 AM   #6
vvenomouss
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to stop config files I deleted from getting re-added after a yum upgrade veeruk101 Linux - Newbie 3 11-03-2011 01:29 PM
[SOLVED] Can I selectively erase using YUM (ignore dependencies)? k9krew Linux - Newbie 4 08-24-2011 08:12 AM
mistake deleted yum.repos.d av.dubey Linux - Newbie 2 07-20-2009 06:59 PM
accidently deleted /var/log/packages lennard Slackware 8 06-21-2004 02:15 AM
yum update kernel* = deleted grub?? lucastic Linux - General 4 03-27-2004 01:23 PM


All times are GMT -5. The time now is 12:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration