Friday, October 8, 2010

HPUX query file for package

Bookmark and Share

This is a small post that helps identify file belonging to certain package.

--------------------------Start Of Shell---------------------------

# swlist –l file | grep <path_to__file_name>

# find /var/adm/sw/products -name INFO -exec grep -i <path_to_file_name> +

---------------------------End Of Shell----------------------------

First command will consume considerable amount of time. However, second CLI proves to be fastest way to query file for a package.


No comments:

Post a Comment

Your valuable comments are welcome. (Comments will be moderated.)

 




Technology