Unable to install CHEF workstation in AWS

I tried installing workstation in AWS on CENTOS 7.

Have installed using the command yum install chefxxx. Then, when i tried to check with the command rpm -qi chefxx. It says its not installed.

If i run the command, yum list installed, the chef package is showing in red color.

Please help