After importing the signing key and enabling the webmin yum repo in RHEL 8 yum install webmin fails:
Running scriptlet: webmin-1.930-1.noarch 44/44
Unable to identify operating system
error: %prein(webmin-1.930-1.noarch) scriptlet failed, exit status 2
Error in PREIN scriptlet in rpm package webmin
error: webmin-1.930-1.noarch: install failed
cat /etc/redhat-release
Red Hat Enterprise Linux release 8.0 (Ootpa)
Note, there is no "Server" in the version string.
Fix - after the following in the webmin spec file
elsif (\`cat /etc/redhat-release 2>/dev/null\` =~ /Red.*Hat\\s+Enterprise\\s+Linux\\s+(Server|Client|Workstation|Everything)\\s+release\\s+(\\d+)/i) {
print "oscheck='Redhat Enterprise Linux'\\n";
}
insert
elsif (\`cat /etc/redhat-release 2>/dev/null\` =~ /Red.*Hat\\s+Enterprise\\s+Linux\\s+release\\s+(\\d+)/i) {
print "oscheck='Redhat Enterprise Linux'\\n";
}
Workaround - edit /etc/redhat-release to read
before installing webmin
Thanks, we'll fix the OS detection for RHEL 8 in the next Webmin release.