Re: rpm "update" package to older version

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

 



Hi,

Sorry, it is my mistake. I just use my test RPM that printout preun,
postun, pre and postinst  sequence and --replacepkgs --oldpackage is
working correctly.

About yum, I looked at other part of the report, so I made a wrong
conclusion. So I guessed that I can also use yum downgrade to get the
same effect right?

yum downgrade condor

================================================================================
Installing:
 condor          i386          7.4.2-1             condor-stable          158 M
Removing:
 condor          i386          7.5.1-1             installed              366 M

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       1 Package(s)

[..]

Removed:
  condor.i386 0:7.5.1-1

Installed:
  condor.i386 0:7.4.2-1

--------------------------------------------------------------------------------------
yum --version
3.2.22
  Installed: rpm-4.4.2.3-18.el5.i386 at 2010-02-24 19:17
  Built    : [] at 2009-09-04 00:26
  Committed: Panu Matilainen <pmatilai@xxxxxxxxxx> at 2009-07-24 22:00

  Installed: yum-3.2.22-20.el5.centos.noarch at 2010-02-24 20:04
  Built    : [] at 2009-08-20 13:55
  Committed: Karanbir Singh <kbsingh@xxxxxxxxxx> at 2009-08-19 22:00

  Installed: yum-metadata-parser-1.1.2-3.el5.centos.i386 at 2010-02-24 20:04
  Built    : [] at 2009-08-27 16:20
  Committed: James Antill <james.antill@xxxxxxxxxx> at 2009-04-06 22:00








On Thu, Apr 15, 2010 at 10:56 PM, James Antill <james@xxxxxxxxxxxxxxxxx> wrote:
> On Thu, 2010-04-15 at 22:32 -0500, Thawan Kooburat wrote:
>> Hi,
>>
>> I would like to know if it is possible to downgrade a package in a
>> similar manner as upgrading a package
>>
>> I tried this option
>>
>> rpm -Uvh --replacepkgs --oldpackage foo-old.rpm
>>
>> but it seems like it go through this sequence
>>
>> remove foo-new.rpm
>> install foo-old.rpm
>>
>> instead of installing old version and then remove the new version
>> which is a normal "update" sequence
>>
>> I also notice that yum downgrade also execute remove first then
>> install the old version.
>
>  What version of rpm is this? With 4.7.2, I get:
>
> % sudo yum down rsync
> [...]
> Running Transaction
>  Installing     : rsync-3.0.6-3.fc12.x86_64                                1/2
>  Cleanup        : rsync-3.0.7-2.fc12.x86_64                                2/2
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxxxxx
> http://lists.rpm.org/mailman/listinfo/rpm-list
>



-- 
Thawan Kooburat

Graduate Student
Department of Computer Science
UW-Madison
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux