LinuxQuestions.org
Support LQ: Use code LQ3H and save $3 on Web Hosting

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 access 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.

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

Reply
 
Thread Tools
Old 05-13-2008, 02:44 AM   #1
rvbalraj
LQ Newbie
 
Registered: Feb 2007
Posts: 7
Accidently removed the RPM DB


[Log in to get rid of this advertisement]
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
rvbalraj is offline     Reply With Quote
Old 05-13-2008, 07:11 PM   #2
chrism01
Senior Member
 
Registered: Aug 2004
Location: Brisbane
Distribution: Fedora 8
Posts: 3,688
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.
chrism01 is offline     Reply With Quote
Old 05-13-2008, 09:41 PM   #3
eggixyz
Member
 
Registered: Apr 2008
Posts: 242
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
eggixyz is offline     Reply With Quote

Reply

Submit thread to Digg | Submit thread to del.icio.us | Submit to LQ Bookmarks

« Back to Top »

Thread Tools

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

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



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 10:13 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
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration