Red Hat Bugzilla – Bug 1481032
dnf system-upgrade marks all installed packages repo as @@commandline
Last modified: 2017-08-15 03:44:37 EDT
Description of problem:
Upgraded from Fedora 24 to Fedors 26 using DNF system upgrade. The commands used were as in the instructions.
dnf system-upgrade download --refresh -releaseserver=26
dnf system-upgrade reboot
Version-Release number of selected component (if applicable):
I upgraded two systems and it happened on both.
Steps to Reproduce:
1. Use dnf to do a system upgrade.
2. run dnf list installed
All the packages upgraded are marked as being installed from the commandline which is technically true, but not quite what I expect.
I expect the repo of the packages to be the repo from which it was downloaded.
When dnf upgrade is run and packages are updated, the repo information is updated.
dnf repository-packages @@commandline remove-or-reinstall
will reinstall all the packages so then they will have the correct repo name. Seems excessive since all the packages have to be downloaded again.
The problem was recently fixed in pythonX-dnf-plugin-system-upgrade-2.0.2-1, that is available for Fedora 26.