upcp on cPanel failed

while running upcp on cpanel server it stopped with error

Running /usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.486871.726225288.1718207292.log --force failed, exited with code 1 (signal = 0)

On checking logs in /var/cpanel/updatelogs/update.486871.726225288.1718207292.log

We see the error

[2024-09-04 13:06:20 -0400] * FATAL: Test install failed: error: Failed dependencies:
[2024-09-04 13:06:20 -0400] libonig.so.5()(64bit) is needed by (installed) alt-php-internal-mbstring-8.2.14-2.el8.x86_64
[2024-09-04 13:06:20 -0400] oniguruma is needed by (installed) alt-php-internal-mbstring-8.2.14-

The fix to this issue on Almalinux was installing oniguruma by command

dnf install oniguruma

now upcp work fine without any issues