cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest
The installer can take time. If you need to review progress, check:
/var/log/cpanel-install.log
When the installer finishes, it prints the WHM setup URL. Open it and complete the wizard.