dnf commands

class reemote.commands.dnf.update.Update(guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_update

Implements package index update using the dnf package manager.

This class extends Command to execute the dnf check-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.dnf.install.Install(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_install

Implements package installation using the dnf package manager.

This class extends Command to execute the dnf install -y 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.dnf.remove.Remove(packages: List[str], guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_remove

Implements package removal using the dnf package manager.

This class extends Command to execute the dnf 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=['vim', 'git'])
class reemote.commands.dnf.upgrade.Upgrade(guard: bool = True, sudo: bool = False, su: bool = False)[source]

Bases: Command_upgrade

Implements package upgrade using the dnf package manager.

This class extends Command to execute the dnf upgrade -y 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()