Bug 10743
| Summary: | RFE: Automatically choosing the RPM with the highest version when upgrading/freshening | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Christian Rose <menthos> |
| Component: | rpm | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2 | Keywords: | FutureFeature |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2000-12-28 16:12:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Christian Rose
2000-04-12 09:16:53 UTC
This problem will be addressed after rpm-4.0 is released. I also think that rpm should handle such cases better. In addition, I think it should also choose the "best" arch match, so one can do a rpm -vF glibc*.rpm Below you can see that there are several tools whose only purpose is to overcome this defect of rpm. I really think rpm should handle such situations. From http://www.blackperl.com/Perl-RPM NAME rpmprune - Remove unneeded files from a list of RPM package files SYNOPSIS rpmprune [ --newer ] [ --older ] [ --equal ] [ --uninst ] [ --invert ] filelist ... DESCRIPTION The rpmprune tool is a simple example of using some of the RPM Perl bindings. With rpm version 3 and newer, multiple files given on the command-line for an install, uninstall or update command are treated as a single transaction. If any of the files in the set cannot be acted upon, the whole transaction must be rejected. This is inconvenient for casual package upgrades where a directory may have many rpm files, some of which are already installed. A command of: rpm -Uhv *.rpm would fail, as one (or more) files in the set is already installed. This can lead to careless use of options such as --force. In the simplest usage, this tool eases that situation by allowing: rpm -Uhv `rpmprune *.rpm` When the back-ticks are evaluated, rpmprune has only echoed the names of those files that are either newer than their installed counterparts, or are not installed at all. |