Hello everyone
What command I need to use for to know the date about install some patch.
For example I was looking the patch 102530-01 I use the command patchadd -p (the number of the patch) or the command pkginfo -p (the number of the patch) but what command I need to use to know about the date about that patch.
Thanks in advance
Greetings
Try something like this:
$ cat ./get_patch_date.sh
#!/bin/bash
showrev -p | sort -k2,2 | while read line; do
PATCHID=$( echo "${line}" |\
sed 's/^Patch: \([0-9]\{6\}-[0-9]\{2\}\) .*$/\1/' )
# Only need to grab the first package name, even if patch
# has been installed to multiple packages - there will only be
# a second or two difference between each pacakge
PACKAGE=$( echo "${line}" |\
sed 's/^.*Packages: \([^,]*\).*$/\1/' )
INSTALLED=$( pkgparam ${PACKAGE} PATCH_INFO_${PATCHID} |\
sed 's/^Installed: \(.*\) From:.*$/\1/' )
echo "${PATCHID}: ${INSTALLED}"
done
exit 0
Cheers
ZB