rpm -qp packagename.rpm rpm -qa # query all packages #!/bin/bash # rpmlist command exec rpm -qa --qf '%15{SIZE} %-48{NAME} %-10{VERSION}\n'