Ask Your Question

HELP! Is it possible to undo a 'dfn remove' command?

asked 2015-06-21 10:59:13 -0600

phobos13 gravatar image

HELP! I just wanted to remove some codecs that I don't need but dfn removed also the dependencies and that's much more! Is there a way to undo this somehow?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-06-21 12:49:34 -0600

florian gravatar image

updated 2015-06-23 08:58:15 -0600

Run sudo dnf history or sudo dnf history info last or sudo dnf history info last-1 to see previous transactions dnf performed. dnf history undo last or dnf history undo $number will revert the removal.

And btw: no need to shout help in the title: It is obvious that anybody posting a question here is seeking help!

edit flag offensive delete link more


I know that dnf is intended as a replacement/upgrade for yum, and yum does have an undo command. (You can either specify the transaction number from the history, or simply use last.) I'd think that carrying this forward would be a no-brainer, but it's possible that it hasn't been implemented as yet. Does anybody know?

sideburns gravatar imagesideburns ( 2015-06-21 14:25:15 -0600 )edit

It has not been implemented in dnf - I don't know if it will in the future. To me, this is a step backwards...

florian gravatar imageflorian ( 2015-06-21 17:57:00 -0600 )edit

I haven't moved to dnf yet, so I have to ask: can you currently examine its history and see what was removed? If so, you should be able to use that to install the packages again, rather like a manual version of undoing the transaction.

sideburns gravatar imagesideburns ( 2015-06-21 18:24:34 -0600 )edit

Actually there is with sudo dnf history undo last depending of the repository. `

luya gravatar imageluya ( 2015-06-21 20:28:57 -0600 )edit

@luya, Oh yea, true. I didn't know that. Thanks! @sideburns: Looks like you can undo last transactions. You can also look into them using dnf history info last or dnf history info last-2...

florian gravatar imageflorian ( 2015-06-22 14:56:54 -0600 )edit

answered 2015-06-21 12:31:55 -0600

phobos13 gravatar image

dfn update!

edit flag offensive delete link more



Using that command will only update those packages you have installed; it won't install anything (except for new dependencies, or new kernels of course) that isn't already there.

sideburns gravatar imagesideburns ( 2015-06-21 18:22:00 -0600 )edit

Question Tools

1 follower


Asked: 2015-06-21 10:59:13 -0600

Seen: 2,563 times

Last updated: Jun 23 '15