Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

BlPackage - createRPMGroupPackageByRPMKeys


BlPackage - createRPMGroupPackageByRPMKeys

Description :

This command packages a set of RPMs in an RPM group in a package. 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 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.

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"



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.3