BlPackage - createRPMGroupPackageByRPMKeys_1

BlPackage - createRPMGroupPackageByRPMKeys

Description :

This command packages a set of RPMs in an RPM group in a package. You can specify the following single-user mode and reboot settings:

You can set the singleUserMode argument to one of the following strings:

  • NotRequired: Not Required
  • RevertTo: Use single-user mode without reboot
  • RebootAs: Reboot into single-user mode

You can set the rebootMode argument to one of the following strings:

  • NotRequired: Not required
  • AfterDeploy: After item deployment
  • AfterDeployWithReconfiguration: After item deployment with reconfiguration (Solaris ONLY)
  • OutOfBand: Out-of-band
  • AtJobEnd: By end of job
  • AtJobEndWithReconfigration: By end of job with reconfiguration (Solaris ONLY)

You can also specify return code override rules for the install and uninstall commands associated with the RPMs.

For background information on the concept of return code overrides, see Depot Software : setDepotSoftwareReturnCodeOverridesByDBKey .

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

dbKeyList

String

Comma separated list of the DBKeys for the RPM depot objects you want to package.

parentGroupID

Integer

ID of the group under which you want to create the new package.

pkgName

String

Name of the package.

installCmd

String

RPM Group install command.

uninstallCmd

String

RPM Group uninstall command.

singleUserMode

String

The single-user mode.

rebootMode

String

The reboot mode.

installErrorRCO

String

The comma-separated list of return codes that should be interpreted as an error from the install command. A blank string indicates that there are no overrides for this category.

installWarningRCO

String

The comma-separated list of return codes that should be interpreted as a warning from the install command. A blank string indicates that there are no overrides for this category.

installRebootRCO

String

The comma-separated list of return codes that should be interpreted as a reboot request from the install command. A blank string indicates that there are no overrides for this category.

installSuccessRCO

String

The comma-separated list of return codes that should be interpreted as success from the install command. A blank string indicates that there are no overrides for this category.

uninstallErrorRCO

String

The comma-separated list of return codes that should be interpreted as an error from the uninstall command. A blank string indicates that there are no overrides for this category.

uninstallWarningRCO

String

The comma-separated list of return codes that should be interpreted as a warning from the uninstall command. A blank string indicates that there are no overrides for this category.

uninstallRebootRCO

String

The comma-separated list of return codes that should be interpreted as a reboot request from the uninstall command. A blank string indicates that there are no overrides for this category.

uninstallSuccessRCO

String

The comma-separated list of return codes that should be interpreted as success from the uninstall command. A blank string indicates that there are no overrides for this category.

Example

The following example packages a list of RPMs. The RPMs are specified by a comma separated list of the DBKeys for the RPMs.

Script

#Get the DB Key of an RPM called python-4.2-0.69.2asp.i386.rpm

DepotObject getDBKeyByTypeStringGroupAndName RPM_INSTALLABLE "/Software" python-4.2-0.69.2asp.i386.rpm

#Repeat for all the other RPMs you want to package.

#Now assemble a comma separated list of the DBKeys of the RPMs.

RPM_DB_KEYS="DBKey:SDepotObjectKey:1-1,DBKey:SDepotObjectKey:2-1"

#Get the ID of the parent group under which you want to create the new package.

PARENT_GROUP_ID=DepotGroup groupNameToId "/Packages"

PKG_NAME="patchPackage"

INSTALL_CMD="rpm -Uiv"

UNINSTALL_CMD="rpm -e"

SINGLE_USER_MODE=NotRequired

REBOOT_MODE=NotRequired

blcli BlPackage createRPMGroupPackageByRPMKeys "$RPM_DB_KEYS" "$PARENT_GROUP_ID" "$PKG_NAME" "$INSTALL_CMD" "$UNINSTALL_CMD" "$SINGLE_USER_MODE" "$REBOOT_MODE" "<0,1,2,3" "4,5,6,10..15" "100..200" "0" "<0,1,2,3" "4,5,6,10..15" "100..200" "0"
Was this page helpful? Yes No Submitting... Thank you

Comments