Bug 2346690 - Packages upgraded offline lose their "From repository" metadata
Summary: Packages upgraded offline lose their "From repository" metadata
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 42
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: Marek Blaha
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-19 20:47 UTC by M. Schlegel
Modified: 2025-03-15 00:43 UTC (History)
5 users (show)

Fixed In Version: dnf5-5.2.11.0-1.fc43 dnf5-5.2.11.0-1.fc41 dnf5-5.2.11.0-1.fc42
Clone Of:
Environment:
Last Closed: 2025-03-14 04:38:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management dnf5 issues 1851 0 None open Incorrect source repository (from_repo) after system upgrade 2025-02-20 09:52:30 UTC

Description M. Schlegel 2025-02-19 20:47:45 UTC
dnf5 offers offline upgrades:

sudo dnf5 upgrade --offline
sudo dnf5 offline reboot

However, doing this makes the upgraded packages lose their "From repository" metadata which is then replaced with the useless generic "@stored_transaction".  At this point, the user than has to resort to other methods like "dnf info --available <packagename>" to find what repository that package likely came from. However even that might not be correct due to repository changes between the time of the offline transaction and the "dnf info --available...." was run.

Expectation:
Upgrading packages directly or offline should have the same result as far as the DNF database package metadata.

Reproducible: Always

Steps to Reproduce:
1. Use "dnf upgrade --offline" to safely upgrade
2. Use "dnf offline reboot"
3. use "dnf list --installed <package>" or "dnf history info <last-#>"
Actual Results:  
All "From repository" information was lost for the packages upgraded offline by getting set to "@stored_transaction"

Expected Results:  
All "From repository" information labels should be available in the same way for either offline or direct upgrades so packages can be tracked.

I suspect the "@stored_transaction" is stuck in for the From repository label because the dnf general design makes it difficult to retain that information.

Comment 1 M. Schlegel 2025-02-19 23:19:27 UTC
This is not that big of a deal, lowered to "low"

Comment 2 M. Schlegel 2025-02-19 23:23:41 UTC
I see the repo information for each package is already in the /usr/lib/sysimage/libdnf5/offline/transaction.json file in the "repo_id" tags.

Comment 3 Petr Pisar 2025-02-20 09:40:15 UTC
Could tell us what dnf5 version did you use for executing the offline upgrade? Be ware that it could be a previous version from what you have installed after the upgrade.

Comment 4 Petr Pisar 2025-02-20 09:52:31 UTC
This as a known bug upstream <https://github.com/rpm-software-management/dnf5/issues/1851>.

Comment 5 M. Schlegel 2025-02-20 12:05:46 UTC
> Could tell us what dnf5 version did you use for executing the offline upgrade?

dnf5-5.2.10.0-2.fc42.x86_64

Comment 6 Fedora Update System 2025-03-10 17:05:38 UTC
FEDORA-2025-823f6cb22a (dnf5-5.2.11.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-823f6cb22a

Comment 7 Fedora Update System 2025-03-11 01:23:05 UTC
FEDORA-2025-823f6cb22a has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-823f6cb22a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-823f6cb22a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-03-11 08:51:32 UTC
FEDORA-2025-edc76bfa6e (dnf5-5.2.11.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-edc76bfa6e

Comment 9 Fedora Update System 2025-03-12 02:40:44 UTC
FEDORA-2025-edc76bfa6e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-edc76bfa6e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-edc76bfa6e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2025-03-14 04:38:46 UTC
FEDORA-2025-edc76bfa6e (dnf5-5.2.11.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-03-15 00:43:29 UTC
FEDORA-2025-823f6cb22a (dnf5-5.2.11.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.