Bug 6182

Summary: Misleading error messages: they don't look like errors
Product: [Retired] Red Hat Linux Reporter: Telsa Gwynne <hobbit>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-10-21 22:12:04 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 Telsa Gwynne 1999-10-21 11:12:03 UTC
Discovered the existance of the --test option and thought
this was a great time to try it. I think it's a bit poorly
documented, or the error messages could be made clearer.

Grabbed a whole bunch of files to install (October Gnome).
Put them in one directory. Ran rpm -U --test *.rpm and it
told me, "Blah: already installed" for half a dozen where
it turned out I already had the latest version.

I didn't realise, but as a result of that, it meant rpm
decided it wouldn't upgrade any of them, so I went ahead
with rpm -U *.rpm and thought all had been upgraded until
I later checked something with rpm -qi and began to wonder.

I expect this would have been picked up by using -Uvh,
but from the Maximum RPM book it looks like the --test
option will tell you things like that, so I didn't use
it.

When doing rpm -U *.rpm in a directory, I don't think
saying "Package blah is already installed, package bleurgh
is already installed" and saying nothing about the others
is a very obvious prelude to "So I'm not going to install
any of the rest". I'm more used to the idea in unix that
if nothing is said, it (probably...) worked.

The Max RPM book, for -i --test, says (in section 2.4.2)
that where there's problems with a package in a group, you
get the error messages for each one, and then a one-line
summary at the end. It then, in the section about upgrading,
says "If it's not discussed here, then the behaviour is
the same as for -i". And says quite plainly that the --test
option is the same. But for -U --test, you don't get the
one-line summary at the end.

Having a one-line summary of "couldn't upgrade some so
didn't upgrade any" when given a bunch of files to upgrade
would be nice, especially for the --test option, which is
presumably supposed to warn you of this kind of thing. It's
not obvious to a new user.

Telsa

Comment 1 Jeff Johnson 1999-10-21 22:12:59 UTC
Attempting to install all packages as a single atomic (i.e. all or
none) "transaction set" is a feature of rpm-3.0.x that's not
documented in "Maximum RPM". While the effect may be surprising, it's
not clear to me that adding Yet Another Error Message is the best way
to handle this. An updated version of "Maximum RPM" seems preferable.