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.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 2 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
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