@hashgraph/solo
Preparing search index...
src/core/package-managers/apt-get-package-manager
AptGetPackageManager
Class AptGetPackageManager
Hierarchy (
View Summary
)
ShellRunner
AptGetPackageManager
Implements
PackageManager
Index
Constructors
constructor
Properties
logger?
Methods
install
install
Packages
is
Available
run
set
On
Sudo
Granted
set
On
Sudo
Requested
sudo
Run
uninstall
uninstall
Packages
update
upgrade
Constructors
constructor
new
AptGetPackageManager
()
:
AptGetPackageManager
Returns
AptGetPackageManager
Properties
Optional
logger
logger
?:
SoloLogger
Methods
install
install
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
install
Packages
installPackages
(
dependencies
:
string
[]
)
:
Promise
<
void
>
Parameters
dependencies
:
string
[]
Returns
Promise
<
void
>
is
Available
isAvailable
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
run
run
(
cmd
:
string
,
arguments_
?:
string
[]
,
verbose
?:
boolean
,
detached
?:
boolean
,
)
:
Promise
<
string
[]
>
Returns a promise that invokes the shell command
Parameters
cmd
:
string
arguments_
:
string
[]
= []
verbose
:
boolean
= false
detached
:
boolean
= false
Returns
Promise
<
string
[]
>
set
On
Sudo
Granted
setOnSudoGranted
(
callback
:
(
message
:
string
)
=>
void
)
:
void
Parameters
callback
:
(
message
:
string
)
=>
void
Returns
void
set
On
Sudo
Requested
setOnSudoRequested
(
callback
:
(
message
:
string
)
=>
void
)
:
void
Parameters
callback
:
(
message
:
string
)
=>
void
Returns
void
sudo
Run
sudoRun
(
sudoRequested
:
(
message
:
string
)
=>
void
,
sudoGranted
:
(
message
:
string
)
=>
void
,
cmd
:
string
,
arguments_
?:
string
[]
,
verbose
?:
boolean
,
detached
?:
boolean
,
)
:
Promise
<
string
[]
>
Parameters
sudoRequested
:
(
message
:
string
)
=>
void
sudoGranted
:
(
message
:
string
)
=>
void
cmd
:
string
arguments_
:
string
[]
= []
verbose
:
boolean
= false
detached
:
boolean
= false
Returns
Promise
<
string
[]
>
uninstall
uninstall
()
:
Promise
<
void
>
Returns
Promise
<
void
>
uninstall
Packages
uninstallPackages
(
dependencies
:
string
[]
)
:
Promise
<
void
>
Parameters
dependencies
:
string
[]
Returns
Promise
<
void
>
update
update
()
:
Promise
<
void
>
Returns
Promise
<
void
>
upgrade
upgrade
(
dependencies
:
string
[]
)
:
Promise
<
void
>
Parameters
dependencies
:
string
[]
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
logger
Methods
install
install
Packages
is
Available
run
set
On
Sudo
Granted
set
On
Sudo
Requested
sudo
Run
uninstall
uninstall
Packages
update
upgrade
@hashgraph/solo
Loading...
Returns a promise that invokes the shell command