To view what packages are installed from which repo :

rpm -qa --qf '%{NAME} %{VENDOR}\n' Display RPM Architecture Just one line in ~/.rpmmacros will save all sorts of trouble later.

echo "%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}" >> ~/.rpmmacros