apk commands

class reemote.commands.apk.update.Update(guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_update

Implements package index update using the apk package manager.

This class extends Command to execute the apk update command for updating package indexes.

guard

A boolean flag indicating whether the operation should be guarded.

sudo

A boolean flag to specify if sudo privileges are required.

su

A boolean flag to specify if the operation should run as su.

Examples:

yield Update()
class reemote.commands.apk.install.Install(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_install

Implements package installation using the apk package manager.

This class extends Command to execute the apk add command for installing packages.

packages

List of package names to be installed.

guard

A boolean flag indicating whether the operation should be guarded.

sudo

A boolean flag to specify if sudo privileges are required.

su

A boolean flag to specify if the operation should run as su.

Examples:

yield Install(packages=['vim', 'git'])
class reemote.commands.apk.remove.Remove(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_remove

Implements package removal using the apk package manager.

This class extends Command to execute the apk del command for removing packages.

packages

List of package names to be removed.

guard

A boolean flag indicating whether the operation should be guarded.

sudo

A boolean flag to specify if sudo privileges are required.

su

A boolean flag to specify if the operation should run as su.

Examples:

yield Remove(packages=['vim', 'git'])
class reemote.commands.apk.upgrade.Upgrade(guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_upgrade

Implements package upgrade using the apk package manager.

This class extends Command to execute the apk upgrade command for upgrading installed packages.

guard

A boolean flag indicating whether the operation should be guarded.

sudo

A boolean flag to specify if sudo privileges are required.

su

A boolean flag to specify if the operation should run as su.

Examples:

yield Upgrade()