Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel3

...

Notes:

Supporting questions

  • Can we repackage a “thinned-out” module with only select packages?

    • probably:

      • EL8 RPM prereqs: createrepo_c (appstream) + modulemd-tools (epel)

      • Process:

        Code Block
        # Create initial repo with ursine modules
        mkdir -p $NEW_REPO_DIR/Packages/ursine
        cp "${URSINE_PACKAGE_FILES[@]}" "$NEW_REPO_DIR/Packages/ursine/"
        cd "$NEW_REPO_DIR"
        createrepo_c .

Modularity CLI examples

Simple dnf module commands

...

Info

This is one of the few (two?) module commands that lists the Repo that provides reports which DNF Repo hosts the module

View the packages in each profile (for a specific stream)

...

Info

Judging by the bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1547041, dnf repoclosure is not module-aware, in the sense that its resolver does not consider packages in all available modules/streams.

The current behavior only resolves module packages using default or enabled streams & profiles.

Clean DNF install --downloadonly with all deps, without needing mock

Make sure you enable/disable the repos to match what you intend for resolution; --config is an option, too.

Code Block
languagebash
DNF_DLONLY_TARGET_PACKAGE=httpd
DNF_DLONLY_INSTALL_ROOT=/root/fake-install-dir
DNF_DLONLY_PACKAGE_DIR=/root/downloadonly

dnf install --downloadonly \
  --installroot="$DNF_DLONLY_INSTALL_ROOT" \
  --downloaddir="$DNF_DLONLY_PACKAGE_DIR" \
  --enablerepo=appstream \
  --disablerepo=test \
  --releasever=8 \
  "$DNF_DLONLY_TARGET_PACKAGE"

Documentation