On Thu, May 15, 2008 at 8:32 PM, Paul B. Henson <henson at acm.org> 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.
Solaris: pkgchk -l -p /usr/bin/ls OpenSolaris: pkg search /usr/bin/ls (Hm. Why is the latter so slow?) -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
