RPM database location for backup purpose

by Vivek Gite on October 12, 2006 · 2 comments

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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 2 comments… read them below or add one }

1 ritzel October 23, 2006

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.

Reply

2 nixcraft October 23, 2006

Use ftp to upload web pages to your server

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 5 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: