Bug 52551 - Installing older packages is not allowed (only new)
Summary: Installing older packages is not allowed (only new)
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-08-24 22:58 UTC by Dag Wieers
Modified: 2007-04-18 16:36 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2001-08-26 14:43:25 UTC


Attachments (Terms of Use)

Description Dag Wieers 2001-08-24 22:58:01 UTC
Description of Problem:
You cannot install an old package next to an existing package, only newer
package can be installed. Supplying --oldpackage is not allowed when
installing (which is weird in se) so one has to use --force (which is able
to overwrite existing files so that's not really what you want either).


Version-Release number of selected component (if applicable):


How Reproducible: Every time


Steps to Reproduce:
1. Install a newer kernel-package (let's say 2.4.3-12)
2. Then type: rpm -ihv kernel-2.2.19-20.i386.rpm
It won't work as you have a newer kernel installed.
3. So you will try: rpm -ihv --oldpacke kernel-2.2.19-20.i386.rpm
But that doesn't work either, as you may not supply --oldpackage
4. Finally you're obliged to use --force although you might not 
want to have --replacefiles --replacepkgs

And the man-page says --force is the same as --replacefiles --replacepkgs
and --oldpackage which is clearly NOT true.


Actual Results:


Expected Results:


Additional Information:

Comment 1 Jeff Johnson 2001-08-25 13:36:50 UTC
Works for me.

bash$ sudo rpm -i kernel-2.4.2-2.i686.rpm 
package kernel-2.4.6-3.1 (which is newer than kernel-2.4.2-2) is already
installed
bash$ sudo rpm -i kernel-2.4.2-2.i686.rpm --oldpackage
bash$ rpm -q rpm
rpm-4.0.3-0.93


Comment 2 Dag Wieers 2001-08-26 14:41:38 UTC
[root@horsea /etc]# rpm -q kernel
kernel-2.4.3-12
[root@horsea /etc]# rpm -ihv kernel-2.2.19-7.0.8.i686.rpm --oldpackage
rpm: --oldpackage may only be used during upgrades
[root@horsea /etc]# rpm -q kernel
kernel-2.4.3-12
[root@horsea /etc]# rpm -ihv kernel-2.2.19-7.0.8.i686.rpm
Preparing...                ########################################### [100%]
package kernel-2.4.3-12 (which is newer than kernel-2.2.19-7.0.8) is already
installed
[root@horsea /etc]# rpm -ihv kernel-2.2.19-7.0.8.i686.rpm --oldpackage
rpm: --oldpackage may only be used during upgrades
[root@horsea /etc]# rpm --version
RPM version 4.0.2


Comment 3 Dag Wieers 2001-08-26 14:47:03 UTC
Ok, sorry.
Your statement was this was fixed in the latest unstable release.
The way you described it seemed that it wasn't a bug in Red Hat 7.1,
only after posting a comment that was clear to me. Thanks again.


Note You need to log in before you can comment on or make changes to this bug.