Monday, July 16, 2012

Solaris 10 update cache cleanup

To cleanup the update cache of patchsvr and/or smpatch perform the following:
    
  • Stop the patch server:

    # patchsvr stop
        
  • On the patch server:

    # cd /var/sadm/spool
    # rm patchsvr/*
    # rm cache/xml/*
    # rm cache/updatemanager/analysis.results/*
    # rm cache/entitlement/*
    # rm cache/Database/*
    # rm cache/collection/*
    # rm cache/category/*
    # rm cache/*detectors*

        
  • On the patch client:

    # cd /var/sadm/spool
    # rm cache/xml/*
    # rm cache/updatemanager/analysis.results/*
    # rm cache/entitlement/*
    # rm cache/Database/*
    # rm cache/*detectors*

      
  • Start the patch server:

    # patchsvr start
        
  • Rebuild server cache first, then the client's:
    (run the following command on the server, then on the client)

    # smpatch analyze