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

As a dnf library user, I can programatically determine if a package is transient or persistent

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

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

      None

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

      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
              iballou@redhat.com Ian Ballou
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: