Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8938

zypper package provider fails to downgrade packages

    XMLWordPrintable

Details

    • Night's Watch
    • Needs Assessment
    • 33293
    • 1
    • Needs Assessment

    Description

      When specifying a specific version of a package (ensure => ...), the zypper provider tries to install that package using the command:

      /usr/bin/zypper --quiet install --auto-agree-with-licenses --no-confirm <package>-<version>
      

      This fails - running the command without the --quiet switch reveals the error:

      The selected package '<package>-<version>' from repository 'Repository' has lower version than the installed one. Use 'zypper install --oldpackage <package>-<version>' to force installation of the package.
      

      When ensure is set to install an older package than the installed package, the --oldpackage switch should be used. (I have not tested to determine whether it is safe to always specify that switch.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              slamble Stuart Lamble
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support