It is best to use "yum" on CentOS to remove and install software .
you really ONLY need to use "rpm" to install a software repo
as above
Code:
su -
yum install zsh
--- or ---
yum remove zsh
you might also need to rebuild the yum and rpm database
Code:
su -
yum clean all
rpm --rebuilddb
yum update