HPUX query file for package

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.

By Mandar Pise

Opinions expressed by techsutram contributors are their own.

No comments:

Post a Comment

    Your valuable comments are welcome. (Moderated)