NAME

Global::linuxpatches - Patches RPM-based Linuxsystems


SYNOPSIS

In custom.conf:

 Global::linuxpatches
 set PATCHCLASS <patchclassfile>


DESCRIPTION

Installs and upgrades RPMs from instructions in a patchclass file. If the rpm listed in the patchclass file has a newer version or release then it triggers an update. The patchclass file is located in $Setup::PATCHDIR/${Setup::OS}_${Setup::OSREV}.

On a RedHat 7.2 system that normally means /custom/patchdir/Linux_2.4/<patchclassfile>.

The <patchclassfile> can contain certain strings like _OSdist_ , _OSdistver_ , _ARCH_ which will be replaced with the corresponding values before accessing the file.

Patchclassfile syntax: [Patchdir: <RPM file directory>] rpm[:rpms] [installscript] [options] ...

If an rpm is prefixed by a +, this rpm is installed (if missing) before the upgrade takes place. Prefix + is used when a newer version of an rpm that is going to be updated, is dependent on someting that might not be installed.

RPM file directory: Directory that contains the rpm binaries that should be updated. This directory is placed in the same dir as the patchclass file. Default value is RPMS.

installscript: If used, the control of the upgrade is left over to this program. This program gets the rpm[:rpms] with full path as first argument. It is located in the same directory as the patchclass file. Note that the exitcodes are 0=fail 1=OK , as in all customize functions.

options: -reboot sets the $main::REBOOT flag if this rpm upgrades successfully. -continue_on_fail ignores the return code from this rpm upgrade and continues on the next line.


COPYRIGHT

Copyright (c) 2001 Ericsson Erisoft AB. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

Peder Strand <Peder.Strand@epl.ericsson.se>