You can easily reinstall the cpanel softwares using below cPanel script.
Let start it how to do that.
cPanel
/scripts/upcpRoundcube:
/usr/local/cpanel/bin/update-roundcube –forceHorde:
/usr/local/cpanel/bin/update-horde –force
or
/scripts/fullhordereset
Squirrelmail
/usr/local/cpanel/bin/update-squirrelmail –force
or
/scripts/fullhordereset
Squirrelmail
/usr/local/cpanel/bin/update-squirrelmail –force
phpMyAdmin
/usr/local/cpanel/bin/updatephpmyadmin
MySQL
/scripts/mysqlup
PostgreSQL
/scripts/installpostgres
pureFTP
/scripts/ftpup –force (See: Installing and Configuring pure-FTP)
Exim
/scripts/eximup
Courier IMAP
/scripts/courierup –force (See: Installing/Configuring Courier IMAP)
Dovecot
/scripts/dovecotup –force (See: Installing and Configuring Dovecot)
cpAddons
/scripts/cpaddonsup
NSD/BIND
/scripts/setupnameserver (NSD:/scripts/nsdup)
Apache/PHP
/scripts/easyapache (See: EasyApache)
suPHP
/scripts/suphpup
cPanel Internal PHP
/scripts/makecpphp
FrontPage Extensions
/scripts/fpupgrade
Mailman
/scripts/reinstallmailman (will not remove list data)
cpHulkd
/usr/local/cpanel/bin/hulkdsetup
Ruby
/scripts/installruby