I want to install the bundle ShadowPassword.
The bundle contains 20 patches as well as the
product.
I now know that only 1 of the 20 patches
require a reboot but lets assume you don't
know this.
From the command line I want to determine if
the package requires a reboot (I know that I
can get this information via interactive
swlist or swinstall under product desc)
I also want to know which patch requires the
reboot since may already have it installed.
What I came up seems overly complex, anyone
have a better way?
swlist -v -l fileset -s /tmp/ShadowPassword_B.01.00.00_HP-UX_B.11.11_32+64.depot | grep -e "# PH" -e is_reboot | uniq
...
# PHCO_28194
is_reboot false
# PHNE_23502
is_reboot true
# PHSS_26492
is_reboot false
# PHSS_26493
is_reboot false