When I do a rpm -ql <package1> to see the files installed by the rpm, I
get a message saying the package is not installed.
However when I do rpm -Uvh <package1> to install it, it says package is
already installed, which is true, because the package is indeed
installed.
Note that -ql and -Uvh take slightly different arguments. -Uvh takes a
filename where -ql takes
a package name. So if you do
rpm -Uvh foo-0.0.1.i386.rpm
then you would do
rpm -ql foo-0.0.1
or
rpm -ql foo
if you only have one version of package foo installed.
--Ray