Description of problem: There was no clear information what "dnf migrate" does. I blindly used this command and lost the existing dnf history. We should have this information in man page at least or else fix the migrate to have both the history data. Version-Release number of selected component (if applicable): dnf-langpacks-0.9.0-2.fc23.noarch python3-dnf-plugins-extras-common-0.0.6-1.fc23.noarch dnf-yum-0.6.5-1.fc23.noarch python-dnf-0.6.5-1.fc23.noarch dnf-conf-0.6.5-1.fc23.noarch python3-dnf-plugins-extras-migrate-0.0.6-1.fc23.noarch dnf-plugins-core-0.1.6-2.fc23.noarch python3-dnf-0.6.5-1.fc23.noarch python3-dnf-langpacks-0.9.0-2.fc23.noarch dnf-0.6.5-1.fc23.noarch python3-dnf-plugins-core-0.1.6-2.fc23.noarch python-dnf-plugins-core-0.1.6-2.fc23.noarch How reproducible: should be always Steps to Reproduce: 1. have system where yum and dnf history exists 2. run "dnf migrate" 3. check "dnf history list" output. Actual results: Expected results: Additional info:
Hello, thank you for the report. I cannot reproduce it on my system. The plugin merges the history but also changes the IDs of the transactions because the YUM's and DNF's transaction IDs almost always conflicts. Did you really lose your DNF history or have you been just confused because the transactions now has different IDs?
Sorry I am confused due to this new change. I forgot now "yum history" is same as "dnf history". All I have seen is following 1) When I updated all packages the first command I ran is $ sudo yum history Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. To transfer transaction metadata from yum to DNF, run 'dnf migrate'Redirecting to '/usr/bin/dnf history' Using metadata from Wed Apr 1 11:57:07 2015 (0:00:29 hours old) Completion plugin: Generating completion cache... ID | Command line | Date a | Action | Altere ------------------------------------------------------------------------------- 17 | update | 2015-04-01 11:48 | I, O, U | 66 16 | update | 2015-04-01 11:03 | E, I, U | 82 < 15 | update -y | 2015-03-30 09:22 | E, I, U | 221 > 14 | install kde-l10n | 2015-03-29 19:53 | Install | 2 13 | install stardict | 2015-03-29 19:52 | Install | 1 12 | install tesseract | 2015-03-29 18:27 | Install | 2 11 | install system-config-la | 2015-03-29 16:29 | Install | 2 10 | | 2015-03-29 16:22 | Install | 2 9 | | 2015-03-29 15:27 | Install | 2 8 | | 2015-03-25 11:25 | E, I, O, U | 571 EE 7 | | 2015-03-20 13:41 | Install | 3 6 | update --exclude docker- | 2015-03-04 13:50 | I, U | 771 E< 5 | update ./fedora-release- | 2015-03-04 13:30 | I, U | 4 > 4 | install fontforge fontma | 2015-03-04 13:06 | Install | 107 3 | install fedora-packager | 2015-03-04 12:54 | I, U | 46 2 | install fedmsg* | 2015-03-04 12:36 | Install | 3 1 | install gnome-shell-ext | 2015-03-04 12:34 | Install | 51 Cleaning up. Then after "dnf migrate" I have following $ sudo dnf history Using metadata from Wed Apr 1 11:57:07 2015 (2:35:56 hours old) ID | Login user | Date a | Action | Altere ------------------------------------------------------------------------------- 36 | parag <parag> | 2015-04-01 11:48 | I, O, U | 66 35 | parag <parag> | 2015-04-01 11:03 | E, I, U | 82 < 34 | parag <parag> | 2015-03-30 09:22 | E, I, U | 221 > 33 | parag <parag> | 2015-03-29 19:53 | Install | 2 32 | parag <parag> | 2015-03-29 19:52 | Install | 1 31 | parag <parag> | 2015-03-29 18:27 | Install | 2 30 | parag <parag> | 2015-03-29 16:29 | Install | 2 29 | parag <parag> | 2015-03-29 16:22 | Install | 2 28 | parag <parag> | 2015-03-29 15:27 | Install | 2 27 | parag <parag> | 2015-03-25 11:25 | E, I, O, U | 571 EE 26 | parag <parag> | 2015-03-20 13:41 | Install | 3 25 | parag <parag> | 2015-03-04 13:50 | I, U | 771 E< 24 | parag <parag> | 2015-03-04 13:30 | I, U | 4 > 23 | parag <parag> | 2015-03-04 13:06 | Install | 107 22 | parag <parag> | 2015-03-04 12:54 | I, U | 46 21 | parag <parag> | 2015-03-04 12:36 | Install | 3 20 | parag <parag> | 2015-03-04 12:34 | Install | 51 < 19 | System <unset> | 2015-03-03 10:09 | Install | 1436 > Cleaning up. and $ sudo yum-deprecated history Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Loaded plugins: langpacks ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 1 | System <unset> | 2015-03-03 10:09 | Install | 1436 Warning: RPMDB altered outside of yum. history list Why the id's are not starting from 1 for "dnf history" command?
Hm, what is interesting for me is why "yum history" printed the "Command line" column while "dnf history" printed the "Login user" column. Are you sure that the commands in the comment are correct? Besides that, it seems that the merge was successful. Michael, what is the reason of the numbering shift?
This is a silly logic of history output - when history shows transaction and all of them come from one user it substitutes 'Login user' column with 'Command line'. So all dnf transactions were from parag thus commandline was shown but after migration there's initial installation transaction from system so it displays Login. Ids have to be renumbered otherwise transactions won't be displayed in the correct order (yum's and dnf's transaction may dissolve if they were used in parallel). If it's a major problem they can be renumbered back to start from 1.
OK, so, let's close this since it seems that there is no bug. If you need the IDs to start from 1, feel free to open a new Bugzilla or reopen this one.