\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
$commandManager
N/A

Properties

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

Methods

__construct()

__construct(\App\CoreModule\Models\CommandManager  $commandManager) : mixed

Constructor

Parameters

\App\CoreModule\Models\CommandManager $commandManager

Command manager

Returns

mixed

install()

install(callable  $callback, string[]  $packages) : void

Installs the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to install

listUpgradable()

listUpgradable(callable  $callback) : void

Lists upgradable packages

Parameters

callable $callback

Callback

getUpgradable()

getUpgradable() : array<int,array<string,int|string>>

Returns list of upgradable packages

Returns

array> —

Upgradable packages

purge()

purge(callable  $callback, string[]  $packages) : void

Purges the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to purge

remove()

remove(callable  $callback, string[]  $packages) : void

Removes the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to remove

update()

update(callable  $callback) : void

Updates a list of packages

Parameters

callable $callback

Callback

upgrade()

upgrade(callable  $callback) : void

Upgrades packages

Parameters

callable $callback

Callback