aux4/system-installer-dnf

aux4 system installer for dnf

This package provides a small aux4 wrapper around the dnf package manager so you can manage Fedora/RHEL/CentOS (and other DNF-based) packages via aux4 commands. It exposes install and uninstall actions and maps both the dnf and linux top-level names to the same functionality so it fits naturally into aux4 pkger/system workflows.

Main use cases:

  • Quickly install a package from dnf inside aux4 workflows and scripts.
  • Remove a package using the same simple command path.
  • Use as the dnf-backed system installer when authoring aux4 packages that list dnf as a system installer.

This package is targeted at Linux systems and integrates with the aux4 package manager (it depends on aux4/pkger being available).

Installation

aux4 aux4 pkger install aux4/system-installer-dnf

Quick Start

Install a package named curl:

aux4 aux4 pkger system dnf install curl

This runs dnf install -y curl on the host. Run the command as root or prefix with sudo so dnf has permission to install packages.

Install a package

Use this for the common case: installing a single dnf package by name.

The command is available at aux4 aux4 pkger system dnf install.

aux4 aux4 pkger system dnf install <package>

Replace <package> with the package name (for example, curl). The command expands to dnf install -y ${package} and will install the package non-interactively.

Uninstall a package

Remove a package with the corresponding uninstall action. This maps to dnf remove -y ${package}.

The command is available at aux4 aux4 pkger system dnf uninstall.

aux4 aux4 pkger system dnf uninstall <package>

Run as root or with sudo so dnf can remove packages.

Using the linux alias

This package exposes the same functionality under the linux name (an alias for dnf) so you can invoke it as:

aux4 aux4 pkger system linux install curl

This is equivalent to aux4 aux4 pkger system dnf install curl and exists for convenience in workflows that reference "linux" as the system type.

Examples

Install curl (minimal)

Install curl non-interactively:

aux4 aux4 pkger system dnf install curl

This executes dnf install -y curl. Use root or sudo to avoid permission errors.

Remove curl

Uninstall curl:

aux4 aux4 pkger system dnf uninstall curl

This executes dnf remove -y curl and will remove the package non-interactively.

Use the linux alias

Install wget using the alias:

aux4 aux4 pkger system linux install wget

This is identical to calling the dnf command and may read more clearly in workflows that use linux as the system installer name.

Requirements

  • Platform: linux
  • aux4/pkger must be available (this package is intended to be used via aux4's package manager)

License

This package is licensed under the Apache License 2.0.

See LICENSE for details.