difference between pkginfo and pkgchk command

can anyone explain me the difference between pkginfo and pkgchk command in solaris. Both are used to display the package details, then what is the difference between both.

As you'll find from reading the man pages pkginfo tells you about a package but pkgchk's main function is to ensure a given package is installed correctly.

even we can get the information whether the package is installed correctly or not in pkginfo also right. correct me if am wrong.

Sure, I could be wrong. Check the documentation.

the basic difference is: pkginfo -l <pkg name> will give detailed info about the package but on the other hand u can use pkgchk to check the integerity of a package, files associated with a package.

And if u use pkgchk -lp <fullpath of a file> = to check weather this file is associated with any package...

I hope this helps you.....

thanks a ;lot