Bug 2218502 - [dnf5] Regression: no way to invalidate cache on update (--refresh)
Summary: [dnf5] Regression: no way to invalidate cache on update (--refresh)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Kolarik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-29 12:35 UTC by Gurenko Alex
Modified: 2023-07-10 10:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-10 10:38:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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