RPM database location for backup purpose
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:
- Restore a backup of a MySQL Database Server
- How can I restore a backup of a MySQL database?
- Backup CentOS Linux RPM database
- Can RAID Act As The Reliable BACKUP Solution For Linux / UNIX / Windows Server?
- Ubuntu Linux Backup MySQL server Shell Script
Discussion on This FAQ
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!



October 23rd, 2006 at 12:57 am
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.
October 23rd, 2006 at 4:47 pm
Use ftp to upload web pages to your server