Installing : perl-Time-Local-1:1.280-1.el8.noarch 38/43
Installing : perl-constant-1.33-396.el8.noarch 39/43
Installing : perl-threads-1:2.21-2.el8.x86_64 40/43
Installing : perl-threads-shared-1.58-2.el8.x86_64 41/43
Running scriptlet: webmin-1.994-1.noarch 42/43
/var/tmp/rpm-tmp.dfXBIc: line 1: perl: command not found
Failed to create or check temp files directory /tmp/.webmin
error: %prein(webmin-1.994-1.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package webmin
Installing : perl-interpreter-4:5.26.3-421.el8.x86_64 43/43
error: webmin-1.994-1.noarch: install failed
Running scriptlet: perl-interpreter-4:5.26.3-421.el8.x86_64 43/43
Verifying : perl-Digest-1.17-395.el8.noarch 1/43
We do have
Requires(pre): /usr/bin/perlin the RPM spec though.That's strange. I'll do some testing.
The RPM has Requires(pre) /usr/bin/perl but the scriptlet just uses 'perl.' I would guess that at this point in the transaction it can't find it. I'm not sure I can test that further with what I have on-hand. FWIW this was on a minimal install Rocky Linux 8.6.
Does it happen if you try devel version of Webmin 1.995?
http://download.webmin.com/devel/rpm/
Also, does it help if before installing Webmin you disable SELinux temporarily?