How to Fix a WHM update that fails to complete

Sometimes a cPanel upgrade get hang. To kill all processes, We can simply use these commands instead of manually trying:

killall -9 rpm; killall -9 rpmq; killall -9 yum; killall -9 upcp

mv /var/lib/rpm/__db* /root  (in case your YUM DB is corrupted)

rpm –rebuilddb (to rebuild your cPanel/Yum DB)

yum –exclude=kernel* -y update

yum clean all

That’s all.