Description of problem: In the rpm manual page, it says: "To print the packages name and distribution information in two columns, you could use %-30{NAME}%{DISTRIBUTION}." However, the actual effect of this option is to print the name and distribution together with no space between. Version-Release number of selected component (if applicable): rpm-4.4.2.1-1.fc7 How reproducible: Always Steps to Reproduce: 1. rpm -q rpm --qf '%-30{NAME}%{DISTRIBUTION}\n' Actual results: rpmUnknown Expected results: rpm Unknown Additional info: It appears to be only the first field-width on each line that doesn't work: $ rpm -q rpm --qf '%-30{NAME}%-30{VERSION}%{DISTRIBUTION}\n' rpm4.4.2.1 Unknown
Workaround: Insert a space after "%-30(NAME}", as in rpm -q rpm --qf '%-30{NAME} %{DISTRIBUTION}\n'
This is the behavior in rpm-5.0a3 and rpm-4.5: $ rpm -q rpm --qf '%-30{NAME}%-30{VERSION}%{DISTRIBUTION}\n' rpm 4.4.2.2 Unknown $ rpm --version RPM version 5.0.DEVEL ... $ rpm -q rpm --qf '%-30{NAME}%-30{VERSION}%{DISTRIBUTION}\n' rpm 4.4.2.2 Unknown $ rpm --version RPM version 4.5
*** This bug has been marked as a duplicate of 16617 ***