dnf < 5 includes /usr/lib/systemd/system/dnf-makecache.service and ".timer" to ensure that metadata is usually already cached when users run dnf.
I don't see any makecache service or timer in any of the dnf5 packages on Fedora 41. Is that intentional, or is it a regression? I can't tell, because https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 says that "dnf5 makecache" has to work, but it doesn't say anything about the timer being present.
V Thu, Oct 17, 2024 at 10:05:49AM -0700, Gordon Messmer napsal(a):
dnf < 5 includes /usr/lib/systemd/system/dnf-makecache.service and ".timer" to ensure that metadata is usually already cached when users run dnf.
I don't see any makecache service or timer in any of the dnf5 packages on Fedora 41. Is that intentional, or is it a regression?
Undefined https://github.com/rpm-software-management/dnf5/issues/812.
I think you can use dnf5-automatic timer instead. If you disable downloading packages with download_updates=False in /etc/dnf/automatic.conf, you should get the same experience as with dnf-makecache timer.
I can't tell, because https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 says that "dnf5 makecache" has to work, but it doesn't say anything about the timer being present.
You are looking at a wrong Changes page. Current one https://fedoraproject.org/wiki/Changes/SwitchToDnf5.
-- Petr
On 2024-10-18 1:32 AM, Petr Pisar wrote:
V Thu, Oct 17, 2024 at 10:05:49AM -0700, Gordon Messmer napsal(a):
dnf < 5 includes /usr/lib/systemd/system/dnf-makecache.service and ".timer" to ensure that metadata is usually already cached when users run dnf.
I don't see any makecache service or timer in any of the dnf5 packages on Fedora 41. Is that intentional, or is it a regression?
Undefinedhttps://github.com/rpm-software-management/dnf5/issues/812.
The issue isn't the lack of the "--timer" option, it's the lack of the scheduled service. I'm starting to see beta users discuss that dnf is slower than it used to be, because it now has to download metadata when used interactively, when it used to have updated cache available. That seems bad, given the amount of hype that has been made about making dnf faster.
I think you can use dnf5-automatic timer instead. If you disable downloading packages with download_updates=False in /etc/dnf/automatic.conf, you should get the same experience as with dnf-makecache timer.
That sounds more complex than making a copy of the old makecache service/timer (without the "--timer" command line option). But I'm not looking for a solution for myself, I'm trying to make sure that Fedora works well by default.
I can't tell, because https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 says that "dnf5 makecache" has to work, but it doesn't say anything about the timer being present.
You are looking at a wrong Changes page. Current one https://fedoraproject.org/wiki/Changes/SwitchToDnf5.
That one also doesn't indicate whether the makecache service/timer was intentionally dropped, or whether this was an oversight.
I've opened https://bugzilla.redhat.com/show_bug.cgi?id=2319828 and https://src.fedoraproject.org/rpms/dnf5/pull-request/86 for further discussion of a temporary fix. I'll follow up with a PR on the dnf5 project shortly.
V Fri, Oct 18, 2024 at 10:46:35AM -0700, Gordon Messmer napsal(a):
On 2024-10-18 1:32 AM, Petr Pisar wrote:
V Thu, Oct 17, 2024 at 10:05:49AM -0700, Gordon Messmer napsal(a):
dnf < 5 includes /usr/lib/systemd/system/dnf-makecache.service and ".timer" to ensure that metadata is usually already cached when users run dnf.
I don't see any makecache service or timer in any of the dnf5 packages on Fedora 41. Is that intentional, or is it a regression?
Undefinedhttps://github.com/rpm-software-management/dnf5/issues/812.
The issue isn't the lack of the "--timer" option, it's the lack of the scheduled service.
The service uses --timer option. You cannot have one without the other.
-- Petr
On 2024-10-21 12:54 AM, Petr Pisar wrote:
The service uses --timer option. You cannot have one without the other.
The man page describes three behavioral differences when the "--timer" option is used, and it seems to me that the systemd units should be able to provide two of them (or a reasonable approximation thereof.)
On Thu, Oct 17, 2024 at 7:04 PM Gordon Messmer gordon.messmer@gmail.com wrote:
dnf < 5 includes /usr/lib/systemd/system/dnf-makecache.service and ".timer" to ensure that metadata is usually already cached when users run dnf.
I don't see any makecache service or timer in any of the dnf5 packages on Fedora 41. Is that intentional, or is it a regression? I can't tell, because https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5 says that "dnf5 makecache" has to work, but it doesn't say anything about the timer being present.
Side note related to dnf makecache - it appears that "dnf makecache --refresh" no longer actually forces a refresh. I'm not sure if anything depended on this behaviour, but it might break things. I found that the only way to force a refresh with dnf5 right now is to "dnf clean" and then try again. (This might be a bug.)
Fabio