BlPackage - createDEBGroupPackageByDEBKeys_1

BlPackage - createDEBGroupPackageByDEBKeys

Description :

This command packages a set of Debian packages into a DEB group within a BLPackage. 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 Debian packages.

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 Debian 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

DEB Group install command.

uninstallCmd

String

DEB 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 Debian packages. The Debian packages are specified by a comma separated list of the DBKeys for the Debian packages.

Script

#Get the DB Key of a Debian package called python-4.2-0.69.2asp.i386.deb

DepotObject getDBKeyByTypeStringGroupAndName DEBIAN_PACKAGE_INSTALLABLE "/Software" python-4.2-0.69.2asp.i386.deb

#Repeat for all the other Debian packages you want to package.

#Now assemble a comma separated list of the DBKeys of the Debian packages.

DEB_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="dpkg -i"

UNINSTALL_CMD="dpkg -r"

SINGLE_USER_MODE=NotRequired

REBOOT_MODE=NotRequired

blcli BlPackage createDEBGroupPackageByDEBKeys "$DEB_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