Re: How does rpm command compare 2 rpm files' version?
- From: Markku Kolkka <markku.kolkka@xxxxxx>
- Date: Wed, 28 Dec 2005 14:09:38 +0200
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
.
- Follow-Ups:
- Re: How does rpm command compare 2 rpm files' version?
- From: Enrique Perez-Terron
- Re: How does rpm command compare 2 rpm files' version?
- References:
- Prev by Date: Interrupt Top half
- Next by Date: process switch...
- Previous by thread: How does rpm command compare 2 rpm files' version?
- Next by thread: Re: How does rpm command compare 2 rpm files' version?
- Index(es):
Relevant Pages
|