Re: yum install <olderversion> does not downgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Use the 'downgrade' option.

https://access.redhat.com/solutions/29617

On Thu, Jun 1, 2017 at 1:46 PM, Anand Buddhdev <anandb@xxxxxxxx> wrote:

> We're using ansible to configure our CentOS 6 servers, and we have a
> task to install a specific version of a package:
>
> - name: install thrift2
>   yum: name=ripencc-thrift2-{{ version }}
>
> In this ansible task, the "version" variable is set by the operator.
> When we want to upgrade, it works. But today we had to downgrade, and
> noticed that ansible wasn't downgrading it. So we tried by hand (the
> installed version was 1.0.8):
>
> # yum install ripencc-thrift2-1.0.3
>
> I don't have the output handy, because a colleague was working on it,
> but basically, yum said something like "package already installed" and
> refused to downgrade it, even though the package is in our repository.
>
> I have a strong sense that yum _used to_ downgrade packages if asked to
> install an older version, but perhaps I am misremembering.
>
> Nevertheless, I want to ask: is this a bug in yum? If asked to install a
> specific version, should it not upgrade OR downgrade as needed?
>
> Regards,
> Anand
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>



-- 
Natrona County Beekeepers <http://ncbees.org>
Casper Amateur Radio Club <http://casperarc.net>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux