Update: This is the relevant bug report: https://bugzilla.redhat.com/show_bug....
"Normally" DNF does the right thing in such situations. I already am in the same situation, and you can see DNF output (many lines removed to simplify output):
[root@localhost pkgs]# dnf -C install @kde-apps
Cache-only enabled but no cache for 'rpmfusion-nonfree-updates', disabling.
Dependencies resolved.
===============================================================================================================
Group Packages
===============================================================================================================
Marking installed:
KDE Applications kdegames-minimal konversation kolourpaint
krusader digikam kdenetwork-krdc
ktorrent kdenetwork-krfb ark
===============================================================================================================
Package Arch Version Repository Size
===============================================================================================================
Installing:
akonadi x86_64 1.13.0-12.fc22 fedora 931 k
ark x86_64 15.04.0-1.fc22 fedora 301 k
........
quazip x86_64 0.7.1-2.fc22 fedora 88 k
Transaction Summary
===============================================================================================================
Install 61 Packages
Total size: 86 M
Total download size: 24 M
Installed size: 291 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] kdegames-minimal-4.14.3-1.fc22.noarch.rpm: Already downloaded
[SKIPPED] konversation-1.6-1.fc22.x86_64.rpm: Already downloaded
....
[SKIPPED] libzip-0.11.2-5.fc22.x86_64.rpm: Already downloaded
[SKIPPED] kf5-kdelibs4support-5.10.0-1.fc22.x86_64.rpm: Already downloaded
^CTerminated.igikam-4.10.0-3.fc22.x8 72% [========================= ] --- B/s | 62 MB --:-- ETA
I've terminated it before downloading anything. As you can see, it skipped already downloaded packages and also is going to resume downloading digikam.
However, I've encountered that if DNF is cancelled while it is downloading repository metadata, it doesn't resume it and starts from scratch. I'm not sure if it always does this or just in some cases.
Anyway, if in your situation DNF doesn't behave correctly, please consider reporting a bug against it in http://bugzilla.redhat.com , as it certainly should do the right thing.
Avoid cancelling the download of repo information...and avoid canceling package download/package upgrade.
@Florian Sometimes I have to, yum could handle this very good, dnf is newer so it should do that too
I miss
yum-complete-transaction