Which packages are installed on the system:
rpm --query --all
In contrast, the following command lists all files in all packages on the local system:
# rpm --query -all