Re: how to query package (a.k.a product) owning file
nospam420_at_yahoo.com
Date: 06/13/05
- Next message: disk drives: "Hard Drives"
- Previous message: Benjamin Gawert: "Re: LCD monitor for my B1000 workstation"
- In reply to: dirk dierickx: "Re: how to query package (a.k.a product) owning file"
- Next in thread: Marty Freitas: "Re: how to query package (a.k.a product) owning file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jun 2005 11:57:56 -0700
dirk dierickx wrote:
> On Fri, 10 Jun 2005 16:19:22 -0700, nospam420 wrote:
>
> > How do I find out what installed package (I guess the HP-UX term for
> > this is a
> > product) a particular file belongs to?
> >
> > I can list all of the files contained within a package with the
> > following:
> >
> > swlist -l file <packagename>
> >
> > But is it possible to do the reverse query?
>
> if i'm not mistaken, you can use the 'what' command, it will give you a
> listing of which package/patch the commands is from.
'what' does seem to be a tool to extract some information from some
files, but it does not appear to be anything integrated into the HP-UX
packaging system to do reverse queries. see the excerpt from the
what(1) man page below.
i would think that the most likely way to do this would be part of one
of the sw* commands, namely:
/usr/sbin/swacl
/usr/sbin/swagentd
/usr/sbin/swapinfo
/usr/sbin/swapon
/usr/sbin/swask
/usr/sbin/swconfig
/usr/sbin/swcopy
/usr/sbin/swinstall
/usr/sbin/swjob
/usr/sbin/swlist
/usr/sbin/swmodify
/usr/sbin/swpackage
/usr/sbin/swreg
/usr/sbin/swremove
/usr/sbin/swverify
but i haven't yet been able to find this functionality with any of
those commands.
- rich
-----
NAME
what - get SCCS identification information
SYNOPSIS
what [-s] file ...
DESCRIPTION
The what command searches the given files for all occurrences of
the
pattern that get(1) substitutes for %Z% (currently @(#) at this
printing) and prints out what follows until the first ", >,
new-line,
\, or null character.
- Next message: disk drives: "Hard Drives"
- Previous message: Benjamin Gawert: "Re: LCD monitor for my B1000 workstation"
- In reply to: dirk dierickx: "Re: how to query package (a.k.a product) owning file"
- Next in thread: Marty Freitas: "Re: how to query package (a.k.a product) owning file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|