After F41 upgrade, dnf list shows repository as "unknown"

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.

1 Like

The reason is explained here:
F41 upgrade marks all packages as manually installed - #3 by navras

1 Like

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.

The info about the source repo is lost, but this does not affect package upgrades.

So when a new version of the package is released, then dnf upgrade will upgrade it? And then it will show as linked to the repo again?

Yes, it works like that.

1 Like

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.

1 Like