Re: How does rpm command compare 2 rpm files' version?



Klein wrote:

> If 2 rpms have the following information:
>
> a.rpm (old one)
> Package name: ABC
> Version: 1.00.pre1
>
> a.rpm (new one)
> Package name ABC
> Version: 1.00.beta1
>
> If I have installed the new one, and want to use rpm command to
> upgrade it with the old one, what is the result?

Because the "old" package has a version that's later in sort order than
the "new" package, RPM believes the package version 1.00.pre1 is an
update and installs it without complaints.

You should version the packages e.g. like this:

a.rpm (old one)
Package name: ABC
Version: 1.00
Release: 0.1.pre1

a.rpm (new one)
Package name ABC
Version: 1.00
Release: 0.2.beta1

Now the version/release is in correct ascending order. Older versions of
the package can be installed with the "--oldpackage" switch of the rpm
command.

--
Markku Kolkka
markku.kolkka@xxxxxx


.



Relevant Pages

  • GetlistItem - - Web services
    ... and it return xml data. ... there is a list call ABC. ... Package is a combo drop list containg all package names. ... The two records exists on ABC lists clearly like this: ...
    (microsoft.public.sharepoint.teamservices.caml)
  • How does rpm command compare 2 rpm files version?
    ... Package name ABC ... If I have installed the new one, and want to use rpm command to upgrade ...
    (comp.os.linux.development.system)
  • Re: How does rpm command compare 2 rpm files version?
    ... Package name ABC ... If I have installed the new one, and want to use rpm command to ... strings, rpm breaks up the strings into alternating non-numeric and ...
    (comp.os.linux.development.system)
  • CTAN has a new package: abc
    ... The following information was provided by the package's contributor. ... This package supports abc music notation in LaTeX ... You may get a better network connection by using a CTAN mirror ...
    (comp.text.tex)
  • Re: YaST updates are not latest-and-greatest
    ... The newest package 'abc' asks for lib-xy-1.2.3 ... and the other 'def' still depends on lib-xy-1.0.1. ... All apps depending on a older version, ...
    (alt.os.linux.suse)