RPM

RPM should support "rpm -Uvh *.rpm" skipping files that are already installed

Bug #633695 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Triaged
Low
Jeff Johnson
Fedora
Won't Fix
Medium

Bug Description

Tracker

Tags: fedora freshen
Revision history for this message
In , Syam (syam-redhat-bugs) wrote :

If I have a number of RPM files and I want to install them all, I do: "rpm -Uvh *.rpm" (the -i command will not work if older version of any package is already installed).

But if any of these RPM files are already installed, the above command will fail listing those files as already installed.
IMHO, RPM should skip those already-installed files and continue with installing the remaining files, instead of doing nothing.

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

See the --freshen option.

Note that using -i does not erase older versions of packages. In
almost all cases (kernel packages are the notable exception)
-U,--upgrade should be used. The behavior of -U is identical
to -i when there is no older version of a package already installed.

Revision history for this message
In , Syam (syam-redhat-bugs) wrote :

Thanks. But the --freshen (equivalent to -F) is an alternative to -U, isn't it? It's not an option to -U.
I case I mentioned requires a 'skip existing' (i.e. 'upgrade older' & 'install new') option to -U.

Revision history for this message
In , Syam (syam-redhat-bugs) wrote :

Reading the documentation, I figure "-U --replacepkgs *.rpm" will install all packages, even the ones that are already installed.
The only difference between the original use-case being that the existing packages are re-installed and not skipped.

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

Yes, --freshen will skip uninstalled, while --replacepkgs will re-install already installed,
leaving the corner case of what to do with --freshen if "same" package is claimed to
be already installed.

The reason for the corner case is that already installed packages might be
modified and its not clear whether "skipping" or "re-installing" is the desired intent.

FWIW, I suspect (unchecked, just I know the code) that "--freshen --replacepkgs"
works just like "--update --replacepkgs" but will also skip uninstalled packages.

Revision history for this message
Jeff Johnson (n3npq) wrote :

Use --freshen instead.

Changed in rpm:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Jeff Johnson (n3npq)
tags: added: fedora freshen
Revision history for this message
In , Bug (bug-redhat-bugs) wrote :

This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 13 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Changed in fedora:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.