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