Bug 189930 - RPM has a very low iq
Summary: RPM has a very low iq
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-25 20:35 UTC by Christian Boltz
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-04-25 21:12:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Novell 168684 0 None None None Never

Description Christian Boltz 2006-04-25 20:35:37 UTC
(I hope this is the correct place to report a bug in RPM, even if I use a SUSE 
Linux system ;-)  - I was asked to report this upstream.)

Description of problem:

# rpm -qi rpm
Name        : rpm          Relocations: (not relocatable)
Version     : 4.4.2        Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
[...]

So far, everything works as expected. But...

# rpm -iq rpm
rpm-4.4.2-37

... it seems RPM has a very low IQ ;-) and fails if the parameter order
changed. I would expect the verbose -i output here also.

It seems not all parameters fail with changed order, for example both "rpm -qf
file" and "rpm -fq file" work.

Version-Release number of selected component (if applicable):
rpm-4.4.2-37 - SUSE Linux 10.1 RC 2

How reproducible:
always

Steps to Reproduce:
1. run   rpm -iq rpm   (or any other packagename)
2. that's it already ;-)
  
Actual results:
only prints package name and version like   rpm -q rpm

Expected results:
verbose package information like   rpm -qi rpm

Comment 1 Michael Jennings (KainX) 2006-04-25 20:52:54 UTC
I hope you're kidding.  The "-i" option to rpm is the "install" option.


Comment 2 Paul Nasrat 2006-04-25 21:12:41 UTC
RPM has major modes eg ('i' install, 'q' query, rpmbuild 'b' build) some of
those take additional mode information - such as -qi (info), -qf (queryfile),
-bp (build and exit after %prep).

Comment 3 Jeff Johnson 2006-04-26 08:51:48 UTC
For hysterical reasons, there are 3 uses of -i in rpm:
    1) --install, -i as a major mode
    2) --info,-i as a modifier for the query -qi
    3) -i for build mode -bi

Both 2) and 3) are implemented as a single dash long option, as if "-qi" or "-bi"
were invoked as "--qi" or "--bi" where the order of the letters is not permutable.




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