cancel
Showing results for 
Search instead for 
Did you mean: 

Where did the file come from?

 
SOLVED
Go to solution
Highlighted
Advisor

Where did the file come from?

For any given file on the system, is there way to tell which depot, bundle, product, fileset it came from?
In AIX, I can use lslpp -w
In Solaris, I can grep through the contents file.
How can I do this in HP-UX?
We are using 11i v1 but the question is in general.
6 REPLIES 6
Highlighted
Exalted Contributor

Re: Where did the file come from?

Shalom,

swlist has a -a fileset parameter that lets you get a full list of the files associated with the depot.

A careful look at the swlist man page might provide a clue or a command.

http://docs.hp.com/en/5900-0307/index.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Acclaimed Contributor
Solution

Re: Where did the file come from?

Hi:

YOu can look at the "file" level of your Installed Product Database with 'swlist'. For example, if I wanted to find where the '/usr/lib/tztab' file comes from I could do:

# swlist -l file |grep -i tztab
OS-Core.CORE-ENG-A-MAN: /usr/share/man/man4.Z/tztab.4
OS-Core.CORE-JPN-E-MAN: /usr/share/man/ja_JP.eucJP/man4.Z/tztab.4
OS-Core.CORE-JPN-S-MAN: /usr/share/man/ja_JP.SJIS/man4.Z/tztab.4
OS-Core.UX-CORE: /usr/lib/tztab
OS-Core.UX-CORE: /usr/newconfig/usr/lib/tztab
OS-Core.UX-CORE: /usr/old/usr/newconfig/usr/lib/tztab
# PHCO_39173 1.0 tztab(4) cumulative patch
PHCO_39173.UX-CORE: /usr/newconfig/usr/lib/tztab
PHCO_39173.UX-CORE: /usr/old/usr/newconfig/usr/lib/tztab

Regards!

...JRF...
Highlighted
Honored Contributor

Re: Where did the file come from?

Hi

'what / which' will give some version information which you can cross reference with swlist.

'what /sbin/ksh'

/usr/bin/ksh:
$Revision: B.11.11_LR
Wed Nov 8 19:55:23 PST 2000 $
$ B.11.11_LR Oct 27 2000 00:40:10 $
Version 11/16/88
Support Fatherhood - Stop Family Law
Highlighted
Honored Contributor

Re: Where did the file come from?

#swlist -a install_source -l product

is the command u probably looking for.

for more information man swlist its has a lot of options.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Highlighted
Advisor

Re: Where did the file come from?

Thank you very much for your responses.
Mr. Ferguson hit the nail on the head first. I can use that command and then Kapil's command to figure out just how it was installed.
Thank you all. Points have been assigned.
Highlighted
Advisor

Re: Where did the file come from?

Thread closed.