After I upgraded to F41, dnf list --installed displays the repository for previously installed packages as <Unknown>, whereas the repository name displays correctly if I use dnf4. Is this expected, and is there anything I can do to get dnf5 to see the repo?
Here is an example:
DNF4 shows repo as “code” for package previously installed on F40
dnf4 list --installed "code.x86_64"
Installed Packages
code.x86_64 1.95.1-1730355393.el8 @code
But DNF5 shows repo for this package as “unknown”
dnf list --installed "code.x86_64"
Installed packages
code.x86_64 1.95.1-1730355393.el8 <unknown>
I found this related bug report, but the conditions mentioned in the bug report don’t apply to me. In my case, I upgraded to F41 and now see the behaviour described above for packages installed earlier by me on F40.
Thanks for the reply. Does dnf5 still know that the packages are linked to the repos, or has it lost the link? I’m trying to figure out if package upgrades are still going to work.
You will also get this if you don’t use dnf5 exclusively to install packages. If you install a package with dnf4, then dnf5 won’t know where it came from. The package status transferred from dnf4 to dnf5 will happen only once, and then never again.