To install latest version of cPanel & WHM on your server, run the following command: ( The Easiest way to install cPanel )
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
This command changes your session to the home
directory, downloads the latest version of cPanel & WHM, and runs the installation script.
Good Luck