BlPackage - createDEBGroupPackageByDEBKeys

BlPackage - createDEBGroupPackageByDEBKeys

Description :

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

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

dbKeyList

String

Comma separated list of the DBKeys for the Debain 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.

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 an 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" 



Was this page helpful? Yes No Submitting... Thank you

Comments