Interrupted system update

asked 2015-10-26 13:06:00 -0500

skytux gravatar image

updated 2015-10-26 13:07:56 -0500

Hi guys, I have this situation: I was updating my Fedora 22 at the university, but there was a power outage and the update didn't finish. Hopefully, I was able to boot the machine and even to login into Gnome, but now it is impossible to continue with the update using dnf upgrade. I can't give you exact details because I'm at home right now, only tomorrow when I get back to work.

I tried package-cleanup --cleandupes (yes, I read this answer), but it didn't work because it wanted to remove systemd and dnf, which are protected packages and are duplicated.

My question is: can I safely remove the lower versions of systemd and dnf with rpm -e and then proceed with cleaning dupes and continue to update in the usual way, or how should I proceed?

Many thanks in advance!

edit retag flag offensive close merge delete

Comments

1

I've not yet upgraded to a dnf version of Fedora, although I will, RSN. However, there should be a dnf equivalent of yum-complete-transaction, and I'd try that first. Also, my understanding is that you don't really have both packages installed; the older one just hasn't been removed from the database, and if so, removing the older one would be fine.

sideburns gravatar imagesideburns ( 2015-10-26 14:39:06 -0500 )edit

As per this guide, there is no equivalent for yum-complete-transaction in dnf world, see also this bug which says that dnf upgrade will install the remaining packages and recommends the use of the autoremove plugin to remove duplicates. Will try these things tomorrow. Thanks for your suggestion, @sideburns!

skytux gravatar imageskytux ( 2015-10-26 15:15:34 -0500 )edit