I tried setting baseurl with setopt but it didn’t work. Commenting out metalink at the same time didn’t work for rsync urls, but seems that it worked for http. At least the error message changes for alternate server.
-No security updates needed, but 252 updates available
+No security updates needed, but 202 updates available
fastestmirror picks the one with the least latency, but that doesn’t necessarily mean most available bandwidth or most recently synced. I definitely recommend keeping the defaults (ie, metalink) over fastestmirror. You can also download the rpms directly from the build output on koji if you really can’t wait for it to hit the repo mirrors.
You tried to update two hours after the update was pushed (around 8h is what I’m mostly seeing and it depends on mirrors). Either find out which mirror syncs with upstream earliest or, if you need to get updates instantly, use koji:
You can change the country by adding &country=<country code> to the metalink. You can add the country code you want. You have to do this per repo. I believe that with some scripting trickery this can be made easier.
Unfortunately, dnf fails when I try to do this from command line, because it can not parse another = in metalink. I’ve added PR here https://github.com/rpm-software-management/dnf/pull/1841 but I have low expectations that it will be merged. My previous dnf PRs are not getting attention.
I don’t think so. If a package is not explicitly installed, dnf explicitly says so.
➜ ~ sudo dnf upgrade nethack
Last metadata expiration check: 1:51:09 ago on Thu 18 Aug 2022 07:41:51 PM +03.
Package nethack available, but not installed.
No match for argument: nethack
Error: No packages marked for upgrade.
This would not appear for a package that was not in the currently enabled repo.
Since enki was not in either the fedora or the updates repo but was only in the updates-testing repo that trick would not work without explicitly enabling the updates-testing repo, which is what solved the issue.
[root@newbox ~]# dnf list --showduplicates --enablerepo=updates-testing enki
Last metadata expiration check: 3:33:43 ago on Thu 18 Aug 2022 17:35:15 CEST.
enki.noarch 21.11.0-2.fc36 fedora
enki.noarch 22.08.0-1.fc36 updates-testing