I am unable to rollback a transaction with DNF5, for it states that nothing is to be done. How can this be bypassed?

When I invoke dnf5 history list | head -n2, I see:

 ID Command line                                                                                                                                                                                                                                                                      Date and time       Action(s) Altered
154 dnf --enablerepo=*debug* install mesa-va-drivers-freeworld-debuginfo-25.0.4-1.fc42.x86_64 ffmpeg-libs-debuginfo-7.1.1-6.fc42.x86_64 vvenc-libs-debuginfo-1.13.1-3.fc42.x86_64 x264-libs-debuginfo-0.164-16.20231001git31e19f92.fc42.x86_64 x265-libs-debuginfo-4.1-2.fc42.x86_64  2025-05-21 13:48:34                17

However, invoking sudo dnf5 history rollback 154, I see:

[sudo] password for RokeJulianLockhart: 
Updating and loading repositories:
Repositories loaded.
Nothing to do.

Context

Even with debuginfod enabled, gdb stated:

Missing rpms, try: dnf --enablerepo='*debug*' install mesa-va-drivers-freeworld-debuginfo-25.0.4-1.fc42.x86_64 ffmpeg-libs-debuginfo-7.1.1-6.fc42.x86_64 vvenc-libs-debuginfo-1.13.1-3.fc42.x86_64 x264-libs-debuginfo-0.164-16.20231001git31e19f92.fc42 .x86_64 x265-libs-debuginfo-4.1-2.fc42.x86_64 openh264-debuginfo-2.4.1-2.fc42.x86_64

They worked, but now I don’t need them anymore.

rollback 154 means “roll back to the state achieved by transaction 154” rather than “roll back transaction 154”.

So you perhaps want sudo dnf history rollback 153 (assuming that you don’t have any transactions after 154 - if so then you can’t reverse the effect of 154 while keeping the subsequent ones).

1 Like

@pg-tips, thanks! That’s perfect:

Package                                                                                                      Arch                  Version                                                                                                       Repository                                                            Size
Removing:
 ffmpeg-libs-debuginfo                                                                                       x86_64                7.1.1-6.fc42                                                                                                  rpmfusion-free-updates-debuginfo                                  62.5 MiB
 mesa-va-drivers-freeworld-debuginfo                                                                         x86_64                25.0.4-1.fc42                                                                                                 rpmfusion-free-updates-debuginfo                                 188.8 MiB
 openh264-debuginfo                                                                                          x86_64                2.4.1-2.fc42                                                                                                  fedora-cisco-openh264-debuginfo                                    3.1 MiB
 vvenc-libs-debuginfo                                                                                        x86_64                1.13.1-3.fc42                                                                                                 rpmfusion-free-updates-debuginfo                                  32.9 MiB
 x264-libs-debuginfo                                                                                         x86_64                0.164-16.20231001git31e19f92.fc42                                                                             rpmfusion-free-debuginfo                                           7.3 MiB
 x265-libs-debuginfo                                                                                         x86_64                4.1-2.fc42                                                                                                    rpmfusion-free-debuginfo                                          19.2 MiB
Removing unused dependencies:
 ffmpeg-debuginfo                                                                                            x86_64                7.1.1-6.fc42                                                                                                  rpmfusion-free-updates-debuginfo                                   7.0 MiB
 ffmpeg-debugsource                                                                                          x86_64                7.1.1-6.fc42                                                                                                  rpmfusion-free-updates-debuginfo                                  51.1 MiB
 mesa-freeworld-debuginfo                                                                                    x86_64                25.0.4-1.fc42                                                                                                 rpmfusion-free-updates-debuginfo                                   4.5 MiB
 mesa-freeworld-debugsource                                                                                  x86_64                25.0.4-1.fc42                                                                                                 rpmfusion-free-updates-debuginfo                                 273.4 MiB
 openh264-debugsource                                                                                        x86_64                2.4.1-2.fc42                                                                                                  fedora-cisco-openh264-debuginfo                                    3.4 MiB
 vvenc-debuginfo                                                                                             x86_64                1.13.1-3.fc42                                                                                                 rpmfusion-free-updates-debuginfo                                  18.1 MiB
 vvenc-debugsource                                                                                           x86_64                1.13.1-3.fc42                                                                                                 rpmfusion-free-updates-debuginfo                                   5.8 MiB
 x264-debuginfo                                                                                              x86_64                0.164-16.20231001git31e19f92.fc42                                                                             rpmfusion-free-debuginfo                                         766.4 KiB
 x264-debugsource                                                                                            x86_64                0.164-16.20231001git31e19f92.fc42                                                                             rpmfusion-free-debuginfo                                           4.5 MiB
 x265-debuginfo                                                                                              x86_64                4.1-2.fc42                                                                                                    rpmfusion-free-debuginfo                                           2.1 MiB
 x265-debugsource                                                                                            x86_64                4.1-2.fc42                                                                                                    rpmfusion-free-debuginfo                                           3.6 MiB
1 Like