Dnf - show version change when upgrading packages?

Greetings everyone,

When upgrading packages using dnf the new version of the package is displayed. Is it possible to also show the currently installed version to see the version change?

Like
firefox-76.0-1 -> firefox-76.0-2
or
firefox-76.0-1 -> 76.0-2

2 Likes

Hi @Mershl I don’t think that is possible to see the version difference with the upgrade command, even with the --verbose flag it doesn’t show.

is not posible using dnf but is you take a look when you update, the last step, show some information:

  Verifiying         : flash-plugin-32.0.0.371-release.x86_64             1/18 
  Verifiying         : flash-plugin-32.0.0.363-release.x86_64             2/18 
  Verifiying         : flash-player-ppapi-32.0.0.371-release.x86_64       3/18 
  Verifiying         : flash-player-ppapi-32.0.0.363-release.x86_64       4/18 
  Verifiying         : gnome-clocks-3.36.2-1.fc32.x86_64                  5/18 
  Verifiying         : gnome-clocks-3.36.0-2.fc32.x86_64                  6/18 
  Verifiying         : ripgrep-12.1.0-1.fc32.x86_64                       7/18 
  Verifiying         : ripgrep-12.0.0-1.fc32.x86_64                       8/18 
  Verifiying         : webkit2gtk3-2.28.2-2.fc32.x86_64                   9/18 
  Verifiying         : webkit2gtk3-2.28.2-1.fc32.x86_64                  10/18 
  Verifiying         : webkit2gtk3-jsc-2.28.2-2.fc32.x86_64              11/18 
  Verifiying         : webkit2gtk3-jsc-2.28.2-1.fc32.x86_64              12/18 
  Verifiying         : chromium-freeworld-81.0.4044.138-1.fc32.x86_64    13/18 
  Verifiying         : chromium-freeworld-81.0.4044.129-1.fc32.x86_64    14/18 
  Verifiying         : faad2-libs-1:2.9.2-1.fc32.x86_64                  15/18 
  Verifiying         : faad2-libs-1:2.9.1-3.fc32.x86_64                  16/18 
  Verifiying         : rpmfusion-free-obsolete-packages-32-3.fc32.noar   17/18 
  Verifiying         : rpmfusion-free-obsolete-packages-32-2.fc32.noar   18/18

Two useful command come to my mind:

dnf history list → with this command you get a list of all dnf activities, and get the ID

for example:

ID     | Línea de comandos         | Día y hora       | Acción(es)     | Modific
--------------------------------------------------------------------------------
  1119 | upgrade                   | 2020-05-12 18:39 | Upgrade        |    9 EE

dnf history info 1119 → get details information about the task

Packages Altered:
    Upgrade  flash-plugin-32.0.0.371-release.x86_64            @adobe-linux-x86_64
    Upgraded flash-plugin-32.0.0.363-release.x86_64            @@System
    Upgrade  flash-player-ppapi-32.0.0.371-release.x86_64      @adobe-linux-x86_64
    Upgraded flash-player-ppapi-32.0.0.363-release.x86_64      @@System
    Upgrade  gnome-clocks-3.36.2-1.fc32.x86_64                 @updates
    Upgraded gnome-clocks-3.36.0-2.fc32.x86_64                 @@System
    Upgrade  ripgrep-12.1.0-1.fc32.x86_64                      @updates
    Upgraded ripgrep-12.0.0-1.fc32.x86_64                      @@System
    Upgrade  webkit2gtk3-2.28.2-2.fc32.x86_64                  @updates
    Upgraded webkit2gtk3-2.28.2-1.fc32.x86_64                  @@System
    Upgrade  webkit2gtk3-jsc-2.28.2-2.fc32.x86_64              @updates
    Upgraded webkit2gtk3-jsc-2.28.2-1.fc32.x86_64              @@System
    Upgrade  chromium-freeworld-81.0.4044.138-1.fc32.x86_64    @rpmfusion-free-updates
    Upgraded chromium-freeworld-81.0.4044.129-1.fc32.x86_64    @@System
    Upgrade  faad2-libs-1:2.9.2-1.fc32.x86_64                  @rpmfusion-free-updates
    Upgraded faad2-libs-1:2.9.1-3.fc32.x86_64                  @@System
    Upgrade  rpmfusion-free-obsolete-packages-32-3.fc32.noarch @rpmfusion-free-updates
    Upgraded rpmfusion-free-obsolete-packages-32-2.fc32.noarch @@System

Regards.,

4 Likes

It could be proposed in GitHub - rpm-software-management/dnf: Package manager based on libdnf and libsolv. Replaces YUM.

1 Like