Ask Your Question
1

dnf deleted the OS !?

asked 2017-04-23 15:15:30 -0600

valugi gravatar image

I do not understand how is this even possible. I had Fedora 21 for about 2 years, and recently upgraded to 25. I decided to use dnf instead of my regular yum (I am getting annoyed by those alerts that the yum is not supported. I did a

dnf update;

and it run. It deleted everything including the bash. I thought it was a little strange that do not have a terminal anymore, but I said maybe it will get fixed on restart. I did restart and I only have the BIOS. I may have ran also an

dnf autoremove;

This should have removed the unused packages not everything. I am not hoping to recover anything, I am only asking if why is this even possible. There should be something in dnf to prevent this from happening, no?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-04-24 10:53:17 -0600

florian gravatar image

updated 2017-04-25 10:58:40 -0600

Your issue is not rare at all. Under certain circumstances, dnf doesn't know what packages are needed and when running dnf autoremove it removes essential packages and sometimes kills the installation.

Take a look at this search (or something similar), and you will see that this issue is absolutely not rare. Redhat's bugtracker is documenting plenty of such cases, including stupid stuff like removing the booted kernel, the entire Desktop Environment, or even dnf itself!

My advice to prevent such disasters:

  1. Never use Gnome Software to install or remove any packages (it doesn't share a transaction database with dnf and one doesn't know what the other is doing/did). Using two independent package managers causes most of the pain here. Max thing you should to with Gnome Software is browsing for available software.
  2. Never run dnf autoremove. If you still do so, check what packages it intends to remove before hitting 'Y'
edit flag offensive delete link more
0

answered 2017-04-23 16:33:44 -0600

aeperezt gravatar image

Your issue is pretty rare, I have done the same steps you did on a VM running Fedora 25 and after update and remove unused packages all works as it should. dnf update; ask for continue confirmation, same as dnf autoremove; and autoremove show you the listo of packages to remove, so you know what was removed and you had to confirm. My guess is you have some issue on your disk. Also dnf work as yum with some improvements so it should not cause this kind of issue.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-23 15:15:30 -0600

Seen: 147 times

Last updated: Apr 25 '17