Re: how to query package (a.k.a product) owning file

nospam420_at_yahoo.com
Date: 06/13/05


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.



Relevant Pages

  • Re: Finding installed package files
    ... >, and who is going to supply this documentation. ... > is a package with the common man pages for the thousand odd common commands ... tell me, as an installation option for some large packages, what was ... >>a set of commands and 'man' pages, could produce such a directory to make it ...
    (alt.os.linux.redhat)
  • Re: Finding installed package files
    ... is a package with the common man pages for the thousand odd common commands ... Seeing as how 18 percent of the package is documentation - have you looked ... >a set of commands and 'man' pages, could produce such a directory to make it ... There are 16 books in front of me between the monitors, ...
    (alt.os.linux.redhat)
  • Re: New list commands ... What do you think ?
    ... That's the risk of every developer writing basic commands. ... allow some discussion about some of them, that are really good for core ... runtime consuming and could be done more efficiencly in C using the tcl ... Critcl builds a package which is loaded. ...
    (comp.lang.tcl)
  • Re: Plotchart ideas (was: Can BLT be replaced by Tcl packages ?)
    ... I finally used the graphic commands of Plotchart instead of the BLT ... package require Tcl ... I can easily make a loop to compute the maximum y label string length. ...
    (comp.lang.tcl)
  • Re: Writing extensions in C: questions:
    ... The correct way to set the interpreter ... >provide], which says it is invoked when the package is finally loaded, ... It seems to me this would result in additional commands being ... >created commands if anything subsequently fails during init? ...
    (comp.lang.tcl)