zypper commands¶
- class reemote.commands.zypper.update.Update(guard: bool = True, sudo: bool = False, su: bool = False)[source]¶
Bases:
Command_updateImplements package index update using the zypper package manager.
This class extends Command to execute the zypper 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.zypper.install.Install(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]¶
Bases:
Command_installImplements package installation using the zypper package manager.
This class extends Command to execute the zypper install -y command for installing 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 Install(packages=['vim'])
- class reemote.commands.zypper.remove.Remove(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]¶
Bases:
Command_removeImplements package removal using the zypper package manager.
This class extends Command to execute the zypper remove -y 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=['black', 'pytest'])
- class reemote.commands.zypper.upgrade.Upgrade(guard: bool = True, sudo: bool = False, su: bool = False)[source]¶
Bases:
Command_upgradeImplements package upgrade using the zypper package manager.
This class extends Command to execute the zypper 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()