Operating System - HP-UX
1847926 Members
4132 Online
104021 Solutions
New Discussion

/var/adm/sw/patch/PATCH_NOSAVE on HP-UX 11.0?

 
SOLVED
Go to solution
A. Daniel King_1
Super Advisor

/var/adm/sw/patch/PATCH_NOSAVE on HP-UX 11.0?

I'm wondering if there has been any change in the location/name/function of this file from 10.20 to 11.0. I'm preparing to apply a patch bundle, and I don't want to get bit by this!

In 10.20 it prevented saving of backout information, if I recall correctly. I don't find this file name in the man page for swinstall, nor with man -k ...

Thanks!
Command-Line Junkie
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: /var/adm/sw/patch/PATCH_NOSAVE on HP-UX 11.0?

Hi:

Yes. On 10.20 you created (touched) a file named "/var/adm/sw/PHxx_nnnn/PATCH_NOSAVE".

On 11.x you use:

-x patch_save_files=false as an (additional) argument to 'swinstall'.

Don't be tempted to use either mode of the mechanism when patching. If used, as you know, when a patch is installed, the patch cannot be deinstalled!

I'd use the 'cleanup' utility available from the ITRC Patch database (if for some reason your patch levels are old).

On 10.20, use:

# cleanup

On 11.x, use:

# cleanup -c 1

or:

# cleanup -c 2

Regards!

...JRF...
Johannes Seippel
Occasional Advisor

Re: /var/adm/sw/patch/PATCH_NOSAVE on HP-UX 11.0?

...but be sure to have the PHCO_24347 s700_800 11.00 HP-UX Patch Tools and White Paper patch installed when using cleanup.
A. Daniel King_1
Super Advisor

Re: /var/adm/sw/patch/PATCH_NOSAVE on HP-UX 11.0?

I like being able to back out. This is a very good thing (tm). I've no intention of using cleanup for some time. I've got cleanup, but I've also got the space.
Command-Line Junkie
H.Merijn Brand (procura
Honored Contributor

Re: /var/adm/sw/patch/PATCH_NOSAVE on HP-UX 11.0?

You can set and save these options as default in "/var/adm/sw/defaults" like

a5:/var/adm/sw 118 # cat defaults
# File: /var/adm/sw/defaults
#
# Purpose: HP OpenView Software Distributor system-wide default options
#
# Header: $Header: defaults,v 5.1 95/03/04 05:05:07 hmgr Exp $
#
# Description: This file contains the customized, system-wide default
# options and behaviors for the HP OpenView Software
# Distributor (SD) commands.
#
# The file /usr/lib/sw/sys.defaults contains a complete list
# of current SD options (with their default values).

swinstall.mount_all_filesystems = false
swinstall.source_directory = /cdrom
swinstall.source_cdrom = /cdrom
swinstall.verbose = 0
swinstall.patch_save_files = false

#swmodify.patch_commit = true

swremove.mount_all_filesystems = false
swremove.verbose = 0
swremove.software_view = products

swconfig.mount_all_filesystems = false
a5:/var/adm/sw 119 #

The "mount_all_filesystems" is very handy if you have NFS mounts in /etc/fstab
Enjoy, Have FUN! H.Merijn