If you had the information available with rpm -qi before installing
the package, you might have been able to better decide whether or not to
install it. Actually, using rpm -qp allows you to query an rpm file instead
of querying the database. All of the queries we've seen so far can be applied
to rpm files as well as installed packages. Here are all the examples again,
this time employing the -p option:
# rpm -qp xsnow-1.41-1.i386.rpm
xsnow-1.41-1
# rpm -qpi xsnow-1.41-1.i386.rpm
[same output as rpm -qi in the previous panel]
# rpm -qpl xsnow-1.41-1.i386.rpm
/etc/X11/applnk/Games/xsnow.desktop
/usr/X11R6/bin/xsnow
/usr/X11R6/man/man1/xsnow.1x.gz
# rpm -qplc xsnow-1.41-1.i386.rpm
/etc/X11/applnk/Games/xsnow.desktop
# rpm -qpld xsnow-1.41-1.i386.rpm
/usr/X11R6/man/man1/xsnow.1x.gz