Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-104314

As a dnf library user, I can programatically determine if a package is transient or persistent [rhel-9]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.8
    • None
    • dnf
    • None
    • rhel-swm
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This is a clone of issue RHEL-104149 to use for version rhel-9.7

      Original description:

      Goal

      As a dnf library user (specifically in Python), I can programatically determine if a package is transient or persistent.

      The goal is for Satellite to be able receive a package profile from RHSM with a new section for package persistence. With this information, Satellite can tell users which packages are installed transiently on their hosts. From there, users can improve their Containerfiles to include the transient packages, or at least be educated about which machines will change on reboot.

       

      Acceptance criteria

      More details are within the RHSM RFE https://issues.redhat.com/browse/CCT-1343

      Some related use of libdnf in RHSM: https://github.com/candlepin/subscription-manager/blob/3eb3ca50939ebf7b177bdaa1d10a74095ebbe33e/src/rhsm/profile.py#L357-L385

      Generally, in the same manner that a libdnf user can query a package's name/version/release/etc, it should also be possible to get the persistence of the package in a Python script.

              packaging-team-maint packaging-team-maint
              watson-automation Watson Automation
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: