Epel issue with webmin installation

hello –

i have been successfully able to install Webmin/Virtualmin on a new RL-10.0 by first doing the following:

echo ‘10.0’ > /etc/dnf/vars/releasever ; ## should this be removed afterward?
dnf -y install cyrus-sasl cyrus-sasl-devel ; ## webmin had trouble with this
dnf clean packages ; ## first time on 10.0 this was required for some reason

furthermore, i have successfully installed webmin/virtualmin on a new 10.1 by first doing the following:

dnf -y install cyrus-sasl cyrus-sasl-devel ; ## webmin had trouble with this

the webmin tech support suggested i stick with 10.0 for now. any opinions on this?

however, they suggested instead of manually creating a /etc/dnf/vars/releasever file, i should go in and edit the epel files.

i have never edited an epel file before. tech support suggested i edit a epel.repo file that does not exist.
it sounds as if they are suggesting i edit the rocky.epel file. i am guessing they are suggesting i change all 75 occurrences of $releasever to 10.0?

i am thinking its better just to create the /etc/dnf/vars/releasever file and then delete it afterwards.

please share any opinions on this with me since i have never done anything in this area before.

The file “epel.repo” is in “/etc/yum.repos.d” directory.

thank you. i see i need to first do:

dnf -y install epel-release ;

i have never edited a epel.repo file before. i am assuming i just change any occurences as follows:

$releasever_major => 10
${releasever_minor:±z} => -z
$releasever => 10.0

any suggestions are greatly appreciated.

EDIT: that seemed to work.

should i restore the epel.repo file to its original condition after completion of installation?

I think it’s better to change “$releasever” to 10.1 and delete “-z”.

thank you. and please note that i need to stick with 10.0 for now.

what i was trying to do was to duplicate somehow whatever the shortcodes were doing with the hard-coded values. and i had no idea really how to convert ${releasever_minor:±z}except to just substitute it with 0-z

here is a diff example:

metalink=https://mirrors.fedoraproject.org/metalink?repo=epel${releasever_minor:+-z}-$releasever&arch=$basearch
---
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-z-10.0&arch=$basearch

i found only a couple of examples so i just took my best guess, which appears to have worked.

are you suggesting i should change it to:

metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-10.0&arch=$basearch

seems easy enough, maybe i will give it a try.

EDIT: i played with it a bit. this link with -z downloads a file:

https://mirrors.fedoraproject.org/metalink?repo=epel-z-10.0&arch=x86_64

but this link with -0 did not work:

https://mirrors.fedoraproject.org/metalink?repo=epel-0-10.0&arch=x86_64

Nor did this link:

https://mirrors.fedoraproject.org/metalink?repo=epel-10.0&arch=x86_64

so i am not sure how to eliminate the -z. any suggestions?

Sorry, I use a specified baseurl on my computer, not metalink. For metalink, it seems the URL “https://mirrors.fedoraproject.org/metalink?repo=epel-z-10.0&arch=x86_64“ is the only valid one if you need to stick with 10.0.

1 Like

Much easier is to create a file /etc/dnf/vars/releasever and then in this file put 10.0 or 10.1. Then there is no need to edit the epel.repo file. However, it does mean all repo files that use the $releasever variable will use that value.

Try: https://mirrors.fedoraproject.org/mirrorlist?repo=epel-z-10.0&arch=x86_64
and: https://mirrors.fedoraproject.org/mirrorlist?repo=epel-10.0&arch=x86_64

I presume that the mirrorlist uses same set of repo-ids as the metalink.
However, unknown id to mirrorlist gives a list of known ids.

The latter above – epel-10.0 – is not known. Curiously, the epel-10 is not on the list either – there must be some additional redirects as it nevertheless gives the epel-z-10.2

this certainly appears to be true. but for whatever reason, there appears to be a debate that has religious overtones for how strongly some people are against it.

rumor has it that whatever the epel problem was is now fixed so this post is now unnecessary.. i am testing it now.

Yes, because Rocky 10.1 was released today and that is why the problems went away.

1 Like

Personally, I prefer to use cockpit.

1 Like