downgrade two packages at once with 'packages'

9 views
Skip to first unread message

mvo...@gmail.com

unread,
Jan 9, 2018, 10:16:50 AM1/9/18
to Puppet Users


Hello list,

I try to downgrade lightdm with 'yum' on my RHEL 7, the obvious approach does not work:


package { [ 'lightdm','lightdm-gobject' ]:
ensure => '1.18.3-1.el7.2',
}

>Execution of '/bin/yum -d 0 -e 0 -y downgrade lightdm-1.18.3-1.el7.2' returned 1: Error:
>Package: lightdm-1.18.3-1.el7.2.x86_64 (el7-backports-74) Requires: lightdm-gobject(x86-64) = 1.18.3-1.el7.2
>[...]
>Execution of '/bin/yum -d 0 -e 0 -y downgrade lightdm-gobject-1.18.3-1.el7.2' returned 1: Error: Package: lightdm-1.25.0-1.el7.x86_64 (@epel)
>Requires: lightdm-gobject(x86-64) = 1.25.0-1.el7

lightdm ist downgraded, but fails, because lightdm-gobject must be downgraded simultaneously
lightdm-gobject is downgraded, but fails, because lightdm must be downgraded simultaneously

On the command line:

>yum downgrade lightdm-1.18.3-1.el7.2 lightdm-gobject-1.18.3-1.el7.2
>============================
>Package Arch Version Repository Size
>============================
>Downgrading:
>lightdm x86_64 1.18.3-1.el7.2
>lightdm-gobject x86_64 1.18.3-1.el7.2
>
>Transaction Summary
>==================
>Downgrade 2 Packages

==> works!

Why it is not possible to downgrade both rpm packages at the same time, from puppet?

Maybe with a package { install_options ==> 'at_once'} , or something?


regards,

Martin

Reply all
Reply to author
Forward
0 new messages