# Copyright (c) 2025 Kim Jarvis TPF Software Services S.A. kim.jarvis@tpfsystems.com # This software is licensed under the MIT License. See the LICENSE file for details.#fromreemote.command_removeimportCommand_removefromreemote.commandimportCommand
[docs]classRemove(Command_remove):""" Implements package removal using the apk package manager. This class extends Command to execute the `apk del` command for removing packages. Attributes: 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:** .. code:: python yield Remove(packages=['vim', 'git']) """defexecute(self):print("trace 21")yieldCommand(f"apk del {self.op}",guard=self.guard,sudo=self.sudo,su=self.su)