Now that 64bit systems have come along, I’ve come across issues using just
rpm -qa
If you have package that installs both a x86 & x86_64 package, it will only show the package name once for both packages.
Try the following, it will list all packages along with the arch type
rpm -qa --queryformat "%{NAME}-%{VERSION}.%{ARCH}\n"
