Jira (PUP-8938) zypper package provider fails to downgrade packages

2 views
Skip to first unread message

Stuart Lamble (JIRA)

unread,
Jun 12, 2018, 7:13:03 PM6/12/18
to puppe...@googlegroups.com
Stuart Lamble created an issue
 
Puppet / Bug PUP-8938
zypper package provider fails to downgrade packages
Issue Type: Bug Bug
Affects Versions: PUP 5.5.2
Assignee: Unassigned
Components: Types and Providers
Created: 2018/06/12 4:12 PM
Environment:

Puppet agent 5.5.2

SLES 12 SP2

Priority: Minor Minor
Reporter: Stuart Lamble

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.)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Jorie Tappa (JIRA)

unread,
Jun 18, 2018, 5:01:03 PM6/18/18
to puppe...@googlegroups.com

Scott McClellan (JIRA)

unread,
Jun 26, 2018, 4:49:04 PM6/26/18
to puppe...@googlegroups.com
Scott McClellan updated an issue
Change By: Scott McClellan
Labels: linux package sles type_and_provider zypper

Garrett Guillotte (JIRA)

unread,
Jan 15, 2019, 3:30:03 PM1/15/19
to puppe...@googlegroups.com
Garrett Guillotte commented on Bug PUP-8938
 
Re: zypper package provider fails to downgrade packages

--oldpackage man page description:

--oldpackage

Allow to replace a newer item with an older one. Handy if you are doing a rollback. Unlike --force it will not enforce a reinstall, if the item is already installed with the requested version.

Austin Boyd (JIRA)

unread,
Dec 12, 2019, 8:38:05 AM12/12/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
 
Change By: Austin Boyd
Zendesk Ticket IDs: 33293
Zendesk Ticket Count: 1

Jenna McCarthy (Jira)

unread,
Jul 19, 2021, 3:09:03 PM7/19/21
to puppe...@googlegroups.com
Jenna McCarthy updated an issue
Change By: Jenna McCarthy
Labels: 001G000001pERe6IAG linux package platform-os sles type_and_provider zypper
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages