How to check if a package is already installed?

Hi All,

I want to check if the perl DBI package is already installed my AIX unix machine. is there any command to check this? Please help.

Thanks,
Am

perl -e 'use DBI;'

you have it installed unless this throws some error

Thanks Yogesh.