Installation Manager repository

Use the command-line interface to work with the internal Installation Manager repository by using the IMRepository and IMRepositories objects.

IMRepository object

An IMRepository object represents an IBM Installation Manager repository. Use the IMRepository object to manage the IBM Installation Manager repository definition.
To get help for the IMRepository object on the command-line interface, pass it as an argument to the help() function, as shown in the following example:
>>> help(deployer.imrepository)

IMRepositories object

An IMRepositories object represents a the collection of IBM Installation Manager repositories.
To get help for the IMRepositories object on the command-line interface, pass it as an argument to the help() function, as shown in the following example:
>>> help(deployer.imrepositories)

IMRepository attributes

categoryname
Category name for the IBM Installation Manager repository.
packageidversion
The ID and version for a software package.

IMRepositories methods

createCategory(<category name>)
Create the specified category in the Installation Manager repository.
>>> deployer.imrepositories.createCategory('Test')
deleteCategory(<category name>)
Delete the specified category in the Installation Manager repository.
>>> deployer.imrepositories.deleteCategory('Test')
listCategory()
List the category names.
>>>deployer.imrepositories.listCategory() 
uploadPackageFromLocal(<category name>, file)
Upload a software package from a local directory to the Installation Manager repository.
>>>deployer.imrepositories.uploadPackageFromLocal('Test','C:\\Download\\bpm\\8.5.0.0-WS-BPM-IFJR48757.zip') 
listPackage()
List the software packages that are in the Installation Manager repository.
>>>deployer.imrepositories.listPackage() 
deletePackage(<category name>, <package id>)
Delete the specified software package from the Installation Manager repository.
>>>deployer.imrepositories.deletePackage('Test','8.5.0.0-WS-BPMPCPD-IFPD48757_8.5.0.20131212_1929')