dpkg commands¶
- class reemote.commands.dpkg.install.Install(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]¶
Bases:
Command_installImplements package installation using the dpkg package manager.
This class extends Command to execute the dpkg -i 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=['package.deb'])
- class reemote.commands.dpkg.remove.Remove(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]¶
Bases:
Command_removeImplements package removal using the dpkg package manager.
This class extends Command to execute the dpkg -r 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'])