On Wed, Mar 27, 2024 at 11:00 AM Germano Massullo
<germano.massullo(a)gmail.com> wrote:
I recently updated to F40 KDE, but Jami software [1] bundled Qt6 RPM
package messed up with system Qt6 (see later fix at [2]), so I had to run:
# dnf autoremove
# dnf reinstall $(rpm -qa)
I have noticed an aggressive packaging removal behaviour from "dnf
autoremove", indeed it removed various essential packages, some of them
even installed by default during Fedora installation (complete list at
[3]) For example:
- gdisk
- openssl
- lz4
- java-21-openjdk
dnf man page, says:
====
dnf [options] autoremove
Removes all "leaf" packages from the system that were originally
installed as dependencies of user-installed packages, but which are no
longer required by any such package.
Packages listed in installonlypkgs are never automatically removed by
this command.
====
I wonder:
1) where installonlypkgs is defined, I could not find it in /etc/dnf
2) why it removed also packages that are shipped by default during a
Fedora installation, like gdisk and openssl
1) installonlypkgs is determined in the code. It is any package that
has "installonlypkg(kernel)", "installonlypkg(kernel-module)", or
"multiversion(kernel)" Provides. Basically the kernel packages.
2) None of those packages are installed directly, they are installed
as dependencies, and if the thing that depended on it no longer is on
the system, they are considered safe to remove.
--
真実はいつも一つ!/ Always, there's only one truth!