Operating System - HP-UX
1820718 Members
2865 Online
109627 Solutions
New Discussion юеВ

What fileset a particular file belongs to?

 
SOLVED
Go to solution
Bolek Mynarski
Frequent Advisor

What fileset a particular file belongs to?

I was wondering if there is a way to determine what fileset/bundle/patch a particular file belongs to on HP-UX 11.+ systems. For example, on a Linux system with RPM installed, I would simply issue a command like: rpm -qf /usr/bin/ls and it would let me know what particular fileset/package 'ls' belongs to.

Can I do something similar on HP-UX as well without much effort or do I have to do it the old fashion way: swlist -l fileset | grep 'whatever'?

Thanks.
It'snever too late to learn new things...
3 REPLIES 3
Jeff Schussele
Honored Contributor
Solution

Re: What fileset a particular file belongs to?

Hi,

Sometimes you can do a
what filename
and a patch will be output that would help you determine where it came from.
What you might also do if you have a fairly comprehensive depot system is to do a find in the depot dir structure to look for the file.
But if the file came in through a SW package *not* installed vi SD utils (EX Oracle), then you're just out of luck.
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Robert-Jan Goossens
Honored Contributor

Re: What fileset a particular file belongs to?

How about the what command ?

# which ls
/usr/bin/ls
# what /usr/bin/ls
/usr/bin/ls:
$Revision: 82.2.1.2 $
PATCH_11_00: ls.o 99/09/29

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: What fileset a particular file belongs to?

I'm sure there's a better, more eloquent way that this, but you can do:

swlist -l file > /tmp/swlist.file

Then edit the resulting file, locate the fileset you're interested in and page back up to find which bundle it belongs to.


Pete

Pete