Tuesday, June 21, 2005

SUN: ID'ing which pkg owns a file

SUN: ID'ing which pkg owns a file
Standard disclaimer: Use the information that follows at your own
risk. If you screw up a system, don't blame it on me...
mailto: dkoleary@olearycomputers.com

On rare occasions, you'll see a message during a pkgadd saying that
it's going to overwrite a file from a different package. The question
I've always had is "How to find out which package owns that file in
the first place?"

Up to now, I've always grep ${file} /var/sadm/install/contents.

As it turns out, you can also pkgchk -lp ${file}

0 Comments:

Post a Comment

<< Home