Ask Your Question

reinstall Fedora 25 Workstation without fresh install

asked 2017-03-08 16:19:00 -0500

flobbadob gravatar image

OK. This is almost too embarassing to admit to, but in trying to resolve a problem, I 'uninstalled' gstreamer (sudo dnf erase gstreamer1.x86_64). DNF advised me that I was just about to remove 2.4GB of files, which although registered in my head as 'substantial for gstreamer' I suffered from premature [Enter] pressing, and watched in horror as libre office, wine etc were removed from my system.

After rebooting, I'm left with a logon prompt, and a network connection.

So the question is: - how do I 'recover' my GUI Fedora 25 Workstation without doing a fresh install?

Constructive advice and mild ribbing will be appreciated

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-08 16:42:36 -0500

sideburns gravatar image

Welcome to ask.fedora! You have my sympathy, as I'm currently trying to get my main computer booting again without a fresh install. Actually, what you need to do isn't that hard. First, run sudo dnf history list to find out the transaction number of the mistaken removal. (Presumably, it will be the most recent one.) Then, run sudo dnf history $NUMBER, replacing $NUMBER with the appropriate transaction number. Once that's finished, reboot and all should be well. Good luck, and let us know what happens.

edit flag offensive delete link more


Thanks for the quick response.

sudo dnf history $NUMBER gave a syntax error. I used sudo dnf history undo $NUMBER.

It worked like a charm. Brillant. Thank you. You are a star.

flobbadob gravatar imageflobbadob ( 2017-03-08 17:19:19 -0500 )edit

Well, of course it gave a syntax error; take a look at the command I suggested. In any event, glad I could be of help!

sideburns gravatar imagesideburns ( 2017-03-08 18:27:02 -0500 )edit

Oops! I just saw my typo. Sorry about that!

sideburns gravatar imagesideburns ( 2017-03-09 00:22:51 -0500 )edit

I think you could do it more tricky: sudo dnf --allowerasing history undo last

madchem gravatar imagemadchem ( 2017-03-11 14:33:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-03-08 16:19:00 -0500

Seen: 362 times

Last updated: Mar 08 '17