Bug 2218502

Summary: [dnf5] Regression: no way to invalidate cache on update (--refresh)
Product: [Fedora] Fedora Reporter: Gurenko Alex <agurenko>
Component: dnf5Assignee: Jan Kolarik <jkolarik>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: agurenko, jkolarik, nsella, pkratoch, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-10 10:38:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gurenko Alex 2023-06-29 12:35:37 UTC
Previously DNF had --refresh parameter that can invalidate cache during the update to get a just added packages. Right now the only way that I know if to run
`dnf clean expire-cache` before running the update to ensure you're getting latest packages.

Reproducible: Always

Steps to Reproduce:
1. dnf upgrade --refresh
Actual Results:  
Unknown argument "--refresh" for command "upgrade"

Expected Results:  
dnf invalidates cache and then performs "fresh" upgrade

Comment 1 Jan Kolarik 2023-06-29 12:45:46 UTC
This was recently added into the upstream: https://github.com/rpm-software-management/dnf5/issues/227. Will be delivered in the following dnf5 release.

Comment 2 Gurenko Alex 2023-06-29 12:47:38 UTC
(In reply to Jan Kolarik from comment #1)
> This was recently added into the upstream:
> https://github.com/rpm-software-management/dnf5/issues/227. Will be
> delivered in the following dnf5 release.

Awesome, thank you for the quick reply, looking forward to it!

Comment 3 Pavla Kratochvilova 2023-07-10 10:38:22 UTC
This should be in rawhide already, see update: https://bodhi.fedoraproject.org/updates/FEDORA-2023-6ddca9885a