Operating System - HP-UX
1833883 Members
1655 Online
110063 Solutions
New Discussion

Which package owns a given file?

 
Tibor Peto
Occasional Contributor

Which package owns a given file?

Hi,

I'd like to query via command line that which 'package' owns a given file?

Regards
Tibor
1 REPLY 1
Kevin Clark
New Member

Re: Which package owns a given file?

There was not a lot of information in this call, but you may like to
try the following commands for a simplistic approach:

swlist -l file | grep '/usr/bin/telnet'

This will tell you that the "telnet" binary is part of the "InternetSrvcs"
package, as well as list any patch bundles that have altered the
installed binary.

Cheers,
Kevin Clark