Q. Why does my Fedora Core Linux server hangs whey I type or use rpm command? How do I fix the problem as I need to install packages?
A. Under Linux many command creates termporary lock files. If this lock file is not removed by rpm in databases you will see this problem. It is also possible that other apps may try to access same file. Please note that following solution works under:
=> CentOS
=> Fedora Core
=> Redhat Linux/RHEL
There is no clear cut solution exists. You can simply delete those files from /var/lib/rpm/ directory
# /bin/rm /var/lib/rpm/__db.*
The above command removes any locks left on the rpm database and now you should able to use rpm command.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 7 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 |
Thanks, that worked a treat!
Thanks!
This solved a server problem I had been working several days on. Thank you.
Thanks! It worked like a charm.
thanks!
Worked like a panther…Thanks.
How about MacOs? It looks like MacOs has different paths.