Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2013

New package promises should support removing a specific version.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: packages
    • Labels:
      None
    • Platform:
      RHEL or CentOS, Debian, Ubuntu, Solaris, AIX, HP-UX, Windows, Linux, Other (details)

      Description

      Use case: Multiple packages of the same name with different versions available in the repository, and the package manager (for whatever reason) has installed the wrong version.

      Some package managers don't accept downgrading.

      The following syntax should be allowed:

      <pre>
      packages:
      "apache" policy => "absent", version => "2.4.12";
      "apache" policy => "present", version => "2.2.29";
      </pre>

      The expected behavior would be to remove package apache at exactly version "2.4.12", and request installation of version "2.2.29".

      The current behavior, if version is specified and policy is absent then the package module is not called after "list-installed".

        Attachments

          Activity

            People

            • Assignee:
              a10053 Marcin Pasinski
              Reporter:
              bahamat Brian Bennett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel