LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-03-2012, 07:44 AM   #1
Divya Sankaran
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Yum erase glibc


I did a yum erase glibc on my linux redhat machine and it deleted a lot of files including some importatnt files! Now I am unable to even enter the machine because it says the root password is wrong. Now what to do to enter the machine first and then reinstall all the packages!!!! Please help me.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-03-2012, 10:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,280
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Quote:
Originally Posted by Divya Sankaran View Post
I did a yum erase glibc on my linux redhat machine and it deleted a lot of files including some importatnt files! Now I am unable to even enter the machine because it says the root password is wrong. Now what to do to enter the machine first and then reinstall all the packages!!!! Please help me.
Boot the installer or a Live CD, configure network, download glibc .rpm package, cd / and then 'rpm2cpio|cpio -idv' unpack it. After (and if) the machine boots use You to down load and --force install the package again.
 
Old 02-03-2012, 11:15 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,632

Rep: Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531Reputation: 2531
Two packages are required for "glibc", I think :
glibc and glibc-common .


You may be out of luck, if you didn't stop 'yum erase glibc'
immediately : 98 % of all packages depend on glibc,
and were removed too by that command.
! Glibc is your OS (Together with the kernel)
and should never be touched !

.
 
Old 02-03-2012, 02:20 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,906

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
you will not do that again
reinstall the operating system
 
2 members found this post helpful.
Old 02-04-2012, 03:04 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,280
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Quote:
Originally Posted by John VV View Post
reinstall the operating system
If the OP can access the system using a Live CD that's rather disporportionate.
 
Old 02-05-2012, 06:13 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
On a RH system, you should be able to boot from the install media and type
Code:
linux rescue

# then after its done, use this example ;
# amend rpm names as needed

chroot /mnt/sysimage

rpm -ivh --replacepkgs --root /mnt/sysimage /mnt/source/Server/bash-3*.rpm

Last edited by chrism01; 02-05-2012 at 06:14 PM.
 
1 members found this post helpful.
  


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] Yum Erase - Many packages deleted vvenomouss Linux - Software 5 11-09-2011 03:49 AM
[SOLVED] Can I selectively erase using YUM (ignore dependencies)? k9krew Linux - Newbie 4 08-24-2011 08:12 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 11:25 AM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM


All times are GMT -5. The time now is 02:54 PM.

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