I've always had problems using rpm, with the query and uninstall options
telling me that packages that I knew to be installed were not installed.
I believe I have figured out the solution to this problem and so am
passing it on, in case others have had the same difficulty.

The trick is to use only the base package name when doing anything besides
installing, where the normal file name is of the form

        [must-have-gizmo-0.3.3alpha].[arch].rpm

Here "[must-have-gizmo-0.3.3alpha]" is the base package name and "[arch]"
is some architecture specification such as "i586".

Although in installing, you would run the command

        rpm -i [must-have-gizmo-0.3.3].[arch].rpm

In querying or uninstalling an already installed rpm, you would run the
command

        rpm -q -i [must-have-gizmo-0.3.3]
or
        rpm -e [must-have-gizmo-0.3.3]

So simple, and yet it has bedevilled me for years.

E

Reply via email to