Ask Your Question

dnf install A was cancelled... and next dnf install B will try to install A and B

asked 2015-08-31 18:43:39 -0500

murpholinox peligro gravatar image

updated 2018-01-09 10:32:44 -0500

I installed texlive-full with the install-tl script with instructions from When I was installing texstudio (dnf install texstudio) I saw that it was downloading a lot of texlive dependencies so I cancelled the process (ctrl+c)

Now I want to install another package (R) but dnf keeps trying to download and install all the texstudio dependencies (texlive) again..

How can I tell dnf to forget about texstudio and just install what I want... kernel 4.1.3-200.fc22.x86_64 and dnf version 1.1.0

edit retag flag offensive close merge delete



Downloading lots of texlive packages is normal, you shouldn't panic. Individual libraries are made available in separate packages so you only need to install what you will use, instead of all of texlive.

randomuser gravatar imagerandomuser ( 2015-08-31 23:43:18 -0500 )edit

You are right @randomuser. R and Texstudio depend on a lot of texlive dependencies. I thought this was just because I cancelled the installation. This is not a problem with dnf. This seems to be a default scheme. Sorry I did not knew.

For a guy who wants to install R (or texstudio or any package that depends on texlive), with a decent up-to-date texlive installation (let's say Classic Thesis won't work because some .sty is not present) there's an easy way to do that

murpholinox peligro gravatar imagemurpholinox peligro ( 2018-01-09 10:26:58 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2015-09-01 16:36:04 -0500

updated 2015-09-01 16:37:38 -0500

Run sudo yum-complete-transaction --cleanup-only, it should remove the pending updates. Don't know if it still works well with dnf. But you could give a try.

If that doesn't work, remove or rename the transaction* files you can find in /var/lib/dnf/ (rm /var/lib/dnf/transaction*)

edit flag offensive delete link more


1) Still not's the paste 2) I got nothing under /var/lib/dnf that starts with transaction

I have korora 22 installed. I guess dnf is the same .....right?

murpholinox peligro gravatar imagemurpholinox peligro ( 2015-09-01 20:06:46 -0500 )edit

In general, you can also revert the changes you have recently made to your system (installing A) - not sure this works if you canceled the installation of A: sudo yum history and then sudo yum undo <transaction-ID>. Should be the same with DNF: sudo dnf history, sudo dnf undo ...

florian gravatar imageflorian ( 2015-09-01 20:26:03 -0500 )edit

Did you see this one here? Not sure if it applies to you though. But you have to get rid of the pending transaction(s) that you canceled. I would have assumed the dnf clean all does the job.

florian gravatar imageflorian ( 2015-09-01 20:28:44 -0500 )edit

Yeah, But it says "As this bug only affects the Yumex graphical interface, it is possible to update from a terminal." And I am not using Yumex. Only dnf...except yesterday that I used 'yum-complete-transaction --cleanup-only' as suggested. And Yeah I also assumed that dnf clean all was gonna take care of everything but it did not.

murpholinox peligro gravatar imagemurpholinox peligro ( 2015-09-02 12:26:04 -0500 )edit

Here is my dnf history . I think from #1 to #9 were done by fedy. I did #10 to install latex 2015 full-scheme. I try to install texstudio and R (which I cancelled) on #11. And I remove texstudio with #17 (which removed R and Rstudio (Rstudio was installed with the software manager) and) #18 was the only way to get rid of all latex 2014 (dependencies from texstudio). Now Everytime I wanna install (dnf) tries to download texstudio and its dependencies.

murpholinox peligro gravatar imagemurpholinox peligro ( 2015-09-02 12:55:37 -0500 )edit

answered 2015-08-31 20:26:24 -0500

florian gravatar image

Try running sudo dnf clean all and then sudo dnf install B

edit flag offensive delete link more


Nope.. Already tried that one. Here is the output

murpholinox peligro gravatar imagemurpholinox peligro ( 2015-09-01 00:51:25 -0500 )edit

All dependencies of packages that you installed previously (even if canceled). Follow @yolo 's hint!

florian gravatar imageflorian ( 2015-09-01 16:43:25 -0500 )edit

Question Tools

1 follower


Asked: 2015-08-31 18:43:39 -0500

Seen: 324 times

Last updated: Jan 09 '18