Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to find out a way to display the LATEST patches installed in a Solaris box. I know the existence of the commands:

showrev - p
patchadd -p

But I'd like to see a list of patches sorted by install date just to confirm that the box has the latest patch installed.

Thoughts?

share|improve this question

migrated from stackoverflow.com Sep 13 '11 at 16:40

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 2 down vote accepted

Patches are packages, packages live in in a directory tree for each package which is here:

/var/sadm/pkg

The patches are in

/var/sadm/patch

ls -lrt for each one shows the order they were created on the system. Patches are NOT necessarily applied in chronological order. This gives you a rough idea, though.

Did you try the smpatch utility to see if there are pending required patches?

smpatch analyze 

shows what smpatch thinks you are missing.

Reply to sockets issue: java 1.6.0.10 has issues that cause this for smpatch Bug ID: 2173292 Bug ID: 6771432 See bugs.sun.com or sun.com

share|improve this answer
    
I think that's a good idea, at least that does give me a list of installed patches sorted by installed date. The smpatch analyze throws the following error: Failure: Cannot connect to retrieve detectors.jar: Unconnected sockets not implemented –  danboh Sep 14 '11 at 20:03
    
See socket issues above, added to answer –  jim mcnamara Sep 14 '11 at 20:40

Check PCA Patch Check Advanced

It's a perl script. You will need an Oracle account and access to internet.

If you want to know if a patch is installed, obsoleted or there is an update with "pca " will show it

PCA is a perl script which generates lists of installed and missing patches for Oracle Solaris systems and optionally downloads and installs patches. By default, if run without any option or operand, PCA shows a list of all patches which are not installed in their most recent revision.

Here's some sample output from pca -l all, which shows a list of all installed and missing patches:

  Using /var/tmp/patchdiag.xref from Feb/29/04
  Host: myhost (SunOS 5.9/Generic_117171-09/sparc/sun4u)
  List: all (7/2182)
  Patch  IR   CR RSB Age Synopsis
  ------ -- - -- --- --- --------------------------------------------------
  112785 42 < 43 RS-  18 X11 6.6.1: Xsun patch
  112787 01 = 01 --- 999 X11 6.6.1: twm patch
  112807 10 = 10 RS-   9 CDE 1.5: dtlogin patch
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.