how to find the package name, if I knwo the path

how to find the package name, if I knwo the path in solaris.

for an example /usr/xxx

Can you please advise?

Oops, my mistake... it should be:

# pkgchk -l -P /usr/xxx

I've always used:

# grep -w "/path/file" /var/sadm/install/contents

the last field will be the package name.