Re: how to query package (a.k.a product) owning file
nospam420_at_yahoo.com
Date: 06/14/05
- Previous message: Marty Freitas: "Re: how to query package (a.k.a product) owning file"
- In reply to: Marty Freitas: "Re: how to query package (a.k.a product) owning file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jun 2005 16:57:19 -0700
Marty Freitas wrote:
> Unfortunately the reverse query is done by brute force:
I was afraid that that was going to be the answer.
> swlist -l file | fgrep path/to/file
> # find /var/adm/sw/products -name INFO -exec grep -il path/to/file +
Thanks for the help.
Conceptually these look okay, but for real world use I can see one
problem already. Here's one example that I've been using as a
testcase. ncftp is installed at /usr/local/bin/ncftp via the package
ncftp. The problem is that this is reported as follows:
ncftp.ncftp-RUN: /usr/local/./bin/ncftp
Which means that any brute force script parsing through this output
needs to be intelligent enough to know that /usr/local/./bin/ncftp is
the same file as /usr/local/bin/ncftp. I'd have to think a bit about
whether there's some simple way to collapse that.
- Rich
- Previous message: Marty Freitas: "Re: how to query package (a.k.a product) owning file"
- In reply to: Marty Freitas: "Re: how to query package (a.k.a product) owning file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]