FrostyX / tracer

Tracer finds outdated running applications in your system
GNU General Public License v2.0
82 stars 24 forks source link

tracer does not appear to work when `dnf5` is installed #204

Closed jelly closed 1 year ago

jelly commented 1 year ago

Our automated Cockpit tests which simulate a package update with a mock package which installs a systemd service tracer no longer recommends restarting a the service.

Is tracer supported when having dnf5 and dnf installed at the same time. Our updates are done using PackageKit which still links to dnf. When our test fails, I removed dnf5 and then tracer works fine.

[root@fedora-38-127-0-0-2-2201 ~]# tracer --all
[root@fedora-38-127-0-0-2-2201 ~]# dnf remove dnf5
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Dependencies resolved.
================================================================================================================================================================================================
 Package                                           Architecture                             Version                                            Repository                                  Size
================================================================================================================================================================================================
Removing:
 dnf5                                              x86_64                                   5.0.13-2.fc38                                      @updates                                   1.1 M
Removing unused dependencies:
 bash-completion                                   noarch                                   1:2.11-9.fc38                                      @fedora                                    1.0 M
 fmt                                               x86_64                                   9.1.0-2.fc38                                       @fedora                                    362 k
 libdnf5                                           x86_64                                   5.0.13-2.fc38                                      @updates                                   2.4 M
 libdnf5-cli                                       x86_64                                   5.0.13-2.fc38                                      @updates                                   518 k

Transaction Summary
================================================================================================================================================================================================
Remove  5 Packages

Freed space: 5.4 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                        1/1
  Erasing          : dnf5-5.0.13-2.fc38.x86_64                                                                                                                                              1/5
  Erasing          : bash-completion-1:2.11-9.fc38.noarch                                                                                                                                   2/5
  Erasing          : libdnf5-cli-5.0.13-2.fc38.x86_64                                                                                                                                       3/5
  Erasing          : libdnf5-5.0.13-2.fc38.x86_64                                                                                                                                           4/5
  Erasing          : fmt-9.1.0-2.fc38.x86_64                                                                                                                                                5/5
  Running scriptlet: fmt-9.1.0-2.fc38.x86_64                                                                                                                                                5/5
  Verifying        : bash-completion-1:2.11-9.fc38.noarch                                                                                                                                   1/5
  Verifying        : dnf5-5.0.13-2.fc38.x86_64                                                                                                                                              2/5
  Verifying        : fmt-9.1.0-2.fc38.x86_64                                                                                                                                                3/5
  Verifying        : libdnf5-5.0.13-2.fc38.x86_64                                                                                                                                           4/5
  Verifying        : libdnf5-cli-5.0.13-2.fc38.x86_64                                                                                                                                       5/5
Installed products updated.

Removed:
  bash-completion-1:2.11-9.fc38.noarch         dnf5-5.0.13-2.fc38.x86_64         fmt-9.1.0-2.fc38.x86_64         libdnf5-5.0.13-2.fc38.x86_64         libdnf5-cli-5.0.13-2.fc38.x86_64

Complete!
[root@fedora-38-127-0-0-2-2201 ~]# tracer --all
You should restart:
  * Some applications using:
      systemctl restart apple
[root@fedora-38-127-0-0-2-2201 ~]#
FrostyX commented 1 year ago

@jelly confirmed that https://github.com/FrostyX/tracer/releases/tag/tracer-1.0-1 fixes the issue.