Operating System - HP-UX
1834604 Members
4340 Online
110069 Solutions
New Discussion

swinstall and how to find package name associated with a file

 
SOLVED
Go to solution
martin_215
Frequent Advisor

swinstall and how to find package name associated with a file

how can i use sd-ux commands to find what package a file is associated with
for instance by mistake i deleted /etc/shutdown or some /usr/lib/xxx file
how do I find the name of the package where this file belongs ,so that I can reinstall the package and get this file back in

I know I can copy this file from someother running machine.But i really like to know what sd-ux command options I can use to find this

5 REPLIES 5
Denver Osborn
Honored Contributor
Solution

Re: swinstall and how to find package name associated with a file

Steven E. Protter
Exalted Contributor

Re: swinstall and how to find package name associated with a file

I don't think they come from a depot. They come from core OS, but its probably okay to copy them in from another working system.

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
martin_215
Frequent Advisor

Re: swinstall and how to find package name associated with a file

I guess u guys dint catch my point

i want to know if swinstall or swverify has some option to find the package name associated with a file

yea i understand ican copy the file from some running machine :)

but idont find this sw utilities friendly
so if u guys have a suggestion on this let me know.appreciate your replies
thankyou very much
martin
Ravi_8
Honored Contributor

Re: swinstall and how to find package name associated with a file


swlist -l fileset
never give up
martin_215
Frequent Advisor

Re: swinstall and how to find package name associated with a file

thanks for all the replies