On Wed, Mar 27, 2024 at 11:00 AM Germano Massullo <germano.massullo@xxxxxxxxx> 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! -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue