Paul B. Henson wrote:
> Is there any easy way to determine on an installed system which package
> owns a particular file? Reviewing the documentation, I see there is a way
> to list out all files owned by a particular package, but I didn't see a way
> to query the other side.
> 
> I suppose you could dump out the files owned for each package individually
> and try to find the file in question, but that seems inefficient.
> 
> Thanks...
> 
> 
Hi
If this is pre IPS, then
$grep /usr/bin/ls var/sadm/install/contents
otherwise if IPS, then

$ pkg search /usr/bin/ls
INDEX      ACTION    VALUE                     PACKAGE
path       file      usr/bin/ls                pkg:/SUNWcs at 0.5.11-0.86
$

Enda

Reply via email to