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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-03-2012, 07:44 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2012
Posts: 2
Rep: 
|
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.
|
02-03-2012, 10:57 AM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,969
|
Quote:
Originally Posted by Divya Sankaran
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.
|
|
|
|
02-03-2012, 11:15 AM
|
#3
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,761
|
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 !
.
|
|
|
|
02-03-2012, 02:20 PM
|
#4
|
|
Guru
Registered: Aug 2005
Posts: 9,692
|
you will not do that again
reinstall the operating system
|
|
|
2 members found this post helpful.
|
02-04-2012, 03:04 AM
|
#5
|
|
Moderator
Registered: May 2001
Posts: 24,969
|
Quote:
Originally Posted by John VV
reinstall the operating system
|
If the OP can access the system using a Live CD that's rather disporportionate.
|
|
|
|
02-05-2012, 06:13 PM
|
#6
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,261
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:34 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|