--- ./wtf.orig 2017-05-09 00:27:31.615525266 +0100 +++ ./wtf 2017-05-09 00:28:41.321297570 +0100 @@ -87,10 +87,10 @@ for i; do continue fi - # Try pkg_info(1) next - ans="$(pkg_info -qc "$i" 2> /dev/null)" + # Try rpm(8) next + ans=`rpm -q --qf "%{name}: %{summary}\n" -- $1 2> /dev/null` if [ $? -eq 0 ]; then - echo "$i: $ans" + echo "$ans" continue fi