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