list of changed files in smpatch

I was looking for a command in Solaris 10’s smpatch that would tell me all the files that would change after doing an smpatch update. I instead found a workable solution that will work for me:

First generate a list of patch id:
smpatch analyze |awk '{print $1}' > /tmp/patchlist

Next, use the download -t command to download the documentation for each patch:

smpatch download -x idlist=/tmp/patchlist -t >> /tmp/patch_docs

Now just grep through /tmp/patch_docs to find any specific files you want to see that might be changed. We were checking to see if anything in /etc would get overriden and didn’t find too much.

This entry was posted in software and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *