[Yum] How to specify required version to downgrade to?

James Antill james-yum at and.org
Fri Feb 14 19:40:28 UTC 2014


Ульянка Да <dekapriz at yandex.ru> writes:

> 14.02.2014, 12:09, "Frank Murphy" <frankly3d at gmail.com>:
>> On Fri, 14 Feb 2014 12:00:14 +0400
>> Ульянка Да <dekapriz at yandex.ru> wrote:
>>
-------------- next part --------------
>>>  Hi,
>>>  man tells downgrade "Will try and downgrade a package from the
>>>  version currently installed to the previously  highest version
>>
>> yum downgrade foo # no need to specify version
>
> I DO need to specify, 'cause I need to downgrade several versions down and I want to skip intermediate steps.

 Both upgrade and downgrade work both ways (you can specify the
installed or to-be-installed version), so just specify the version you
want to downgrade to and it'll try to downgrade the installed version
to that version.

Eg.

# yum ls --showd yum
Loaded plugins: aliases
Installed Packages
yum.noarch                  3.4.3-85.fc18                    @fedora-yum-rawhide
Available Packages
yum.noarch                  3.4.3-47.fc18                    fedora             
yum.noarch                  3.4.3-53.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-54.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-54.fc18                    updates            
yum.noarch                  3.4.3-55.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-56.fc18                    fedora-yum-rawhide 
[...]
yum.noarch                  3.4.3-84.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-85.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-86.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-87.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-88.fc18                    fedora-yum-rawhide 
yum.noarch                  3.4.3-90.fc18                    fedora-yum-rawhide 
[...]
# yum downgrade yum-3.4.3-69.fc18
Loaded plugins: aliases
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.4.3-69.fc18 will be a downgrade
---> Package yum.noarch 0:3.4.3-85.fc18 will be erased
--> Finished Dependency Resolution

Dependencies Resolved
[...]

-- 
James Antill -- james at and.org


More information about the Yum mailing list