About Linux FAQ

Browse More FAQs:

Advertisements

RPM database location for backup purpose

Posted by Vivek Gite [Last updated: October 12, 2006]

Q. Where is the RPM database located under Fedora Core Linux? I need to backup the same so that it can be used for restore purpose. May be I can use the same for troubleshooting purpose.

A. /var/lib/rpm directory stores all files used by rpm command. To be frank you don't have to backup /var/lib/rpm directory. You can use rpm command to get list of packages and restore them later on.

If you get rpm database corruption error, try to follow instructions mentioned here to fix database problem with following two commands:
# rpm --rebuilddb
# rpmdb_verify Packages

Above command will rebuild the RPM database for Fedora Core and recreate the necessary files for you.

Please note that above command works with Red Hat Linux, Fedora Core and Cent OS.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. ritzel Says:

    I was reassigned to our IT Department and my first task is to upload a webpage to our web server. Please give me an advise on how this can be done.

  2. nixcraft Says:

    Use ftp to upload web pages to your server

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.