You can install megacli using below steps.
# Log in as 'root' user or use 'sudo' to execute the following commands
[root@host ~] cd /var/tmp
[root@host tmp] unzip 8-07-14_MegaCLI.zip
[root@host tmp] cd Linux
[root@host Linux] rpm -Uvh MegaCli-8.07.14-1.noarch.rpm
....wait for installer to finish....
[root@host Linux] alias MegaCli="/opt/MegaRAID/MegaCli/MegaCli64"
# Navigate to your home directory
[root@host MegaCLI_Linux] cd ~
# Open your .bashrc file and add the following line
[root@host ~] vim .bashrc
alias MegaCli='/opt/MegaRAID/MegaCli/MegaCli64'
Test the install. As an example, let’s list all the logical volumes in the machine (output may differ based on configuration.
[root@host MegaCLI_Linux] MegaCli -LDInfo -Lall -aALL