rpm: show packages with names only
Sometimes it’s needed to get only packages names only using rpm. This is how it can be done:
rpm -qa --qf "%{NAME}\n"
Sometimes it’s needed to get only packages names only using rpm. This is how it can be done:
rpm -qa --qf "%{NAME}\n"
As simple as:
sed -e '/^$/N;/^\n$/D' <file>