LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 05-13-2008, 03:44 AM   #1
rvbalraj
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Rep: Reputation: 0
Accidently removed the RPM DB


I Accidently removed the RPM DB in remote RHEL 4 server. I used command list following commands on remote server.

# rpm -e rpm -e MySQL-shared-5.0.45-0.glibc23
# rpm -e rpm -e MySQL-shared-5.0.45-0.glibc23 -nodeps
# rpm -e rpm -e MySQL-shared-5.0.45-0.glibc23 --nodeps

After did above command
#rpm
-bash: rpm: command not found

I did this on remote cpanel installed server
 
Old 05-13-2008, 08:11 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
That's because you repeated
rpm -e
you only need it once per line for the MySQL stuff.
rpm -e rpm
removed the rpm

hopefully somewhere in the menus there'll be an rpm install option.
 
Old 05-13-2008, 10:41 PM   #3
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

You can grab the RPM rpm file and use rpm2cpio to extract it and install it.

rpm2cpio /dir with/your/rpm-*.rpm | cpio -dimv

otherwise, boot off of your rescue cd ("linux rescue") and mount your root partition (/dev/hda or whatever it is), then chroot that mountpoint so it appears to be / and you can reinstall the rpm package using the rpm binary on your rescue cd.

Hope that helps!

, Mike
 
  


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
Accidently removed application bar amivit Slackware 3 10-24-2007 10:30 AM
accidently removed internet icon firedancer Ubuntu 3 08-07-2007 08:38 AM
HELP! accidently removed files RobHill Linux - General 2 06-01-2007 02:04 PM
Fixing the menu bar?? Accidently removed some icons.... Dimitriy Debian 1 10-29-2005 11:06 AM
dselect, removed necessary packages accidently eggsally Debian 3 06-02-2004 04:46 PM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
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