\App\GatewayModule\Models\PackageManagersAptGetPackageManager

Adapter for apt-get package manager

Summary

Methods
Properties
Constants
__construct()
install()
listUpgradable()
getUpgradable()
purge()
remove()
update()
upgrade()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\GatewayModule\Models\PackageManagers\CommandManager  commandManager) : 

Constructor

Parameters

\App\GatewayModule\Models\PackageManagers\CommandManager commandManager

Command manager

Returns

install()

install(  callback, string||string|int  packages) : 

Installs the packages

Parameters

callback

Callback

string||string|int packages

Packages to install

Returns

listUpgradable()

listUpgradable(  callback) : 

Lists upgradable packages

Parameters

callback

Callback

Returns

getUpgradable()

getUpgradable() : mixed||string|int

Returns list of upgradable packages

Returns

mixed||string|int —

Upgradable packages

purge()

purge(  callback, string||string|int  packages) : 

Purges the packages

Parameters

callback

Callback

string||string|int packages

Packages to purge

Returns

remove()

remove(  callback, string||string|int  packages) : 

Removes the packages

Parameters

callback

Callback

string||string|int packages

Packages to remove

Returns

update()

update(  callback) : 

Updates a list of packages

Parameters

callback

Callback

Returns

upgrade()

upgrade(  callback) : 

Upgrades packages

Parameters

callback

Callback

Returns