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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 2 comments… read them below or add one }
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.
Use ftp to upload web pages to your server