rpm -qp --queryformat='Name: %{NAME}\nGroup: %{GROUP}\nURL: %{URL}\nSuggests: %{SUGGESTS}\n[Requires: %{REQUIRES}\n]\nConflicts: %{CONFLICTS}\nProvides: %{PROVIDES}\nObsoletes: %{OBSOLETES}\n'
В квадратные скобочки надо взять, если есть вероятность получить массив для тэга.
[yuri@localhost ~]$ rpm -qp --queryformat='Name: %{NAME}\nGroup: %{GROUP}\nURL: %{URL}\nSuggests: %{SUGGESTS}\n[Requires: %{REQUIRES}\n]\nConflicts: %{CONFLICTS}\nProvides: %{PROVIDES}\nObsoletes: %{OBSOLETES}\n' glibc-2.14.1-8.mga2.i586.rpm
Name: glibc
Group: System/Libraries
URL: http://www.gnu.org/software/libc/
Suggests: (none)
Requires: dash-static
Requires: dash-static
Requires: /bin/dash.static
Requires: /usr/sbin/glibc-post-wrapper
Requires: rpmlib(PartialHardlinkSets)
Requires: rpmlib(PayloadFilesHavePrefix)
Requires: rpmlib(CompressedFileNames)
Requires: rpmlib(PayloadIsLzma)
Conflicts: prelink
Provides: glibc-crypt_blowfish
Obsoletes: glibc-xen