Do you have that package installed
With yum, you can find out if you have a package installed using the query option. For example if you want to know if 'php-gd' is installed:
# rpm -q php-gd
php-gd-5.1.6-1.6
# rpm -q php-gd
php-gd-5.1.6-1.6