Red Hat Bugzilla – Bug 1260299
dnf removing important packages like zlib and sqlite within removal of some packages
Last modified: 2015-09-07 08:38:51 EDT
Description of problem:
I have had this problem twice now. It seems that when removing some packages with dnf, it automatically removes packages important to system like zlib and sqlite. I'm newcomer to Fedora, but had centos before it and suse before that so I'm quite at home with rpm-redhat-based systems.
Version-Release number of selected component (if applicable):
Fedora Server, 22.
Steps to Reproduce:
1. Install skype or postgresql via dnf or rpm
2. Run `dnf remove skype` or `dnf remove postgresql`, hit Y
3. Have a broken system
Since most of the important packages and commands depend on zlib, wget, curl, dnf, rpm or connecting with ssh no longer work.
Got it resolved with the tips and kind help of #fedora at freenode and my own findings. Tips to solve: have a VM or another machine with rpm2cpio, get the files from koji.fedoraproject.org/koji, unpack them and copy them over to the system, then `dnf reinstall zlib uuid sqlite`.
Dnf should not remove zlib only during removal of postgresql or freaking skype... this could be happening for many dnf remove commands if the user is not careful enough.
Here are the pastebins, by the way:
Looks like a duplicate of the bug 1222812.
*** This bug has been marked as a duplicate of bug 1222812 ***