Article 6Q0Q5 dnf - which format for one line item listing installed status and versions

dnf - which format for one line item listing installed status and versions

by
mrmazda
from LinuxQuestions.org on (#6Q0Q5)
DNF is too powerful not to have this, but I've had no luck identifying it. I'd like to be able to search for packages and have results for each existing package either installed and/or currently on the mirrors, with output on only one line per package, showing, at least: 1-installation status; 2-name; 3-version. Coupling with grep is OK. What is it/are they please?

SUSE offers this as example:
Code:# zypper se -s suse-mod
| suse-module-tools-legacy | package | 15.5.1-150500.1.2 | x86_64 | OSS
| suse-module-tools-legacy | package | 15.5.2-150500.3.3.1 | x86_64 | UpdateSLE
| suse-module-tools-legacy | package | 15.5.3-150500.3.6.1 | x86_64 | UpdateSLE
| suse-module-tools-legacy | package | 15.5.4-150500.3.9.1 | x86_64 | UpdateSLE
| suse-module-tools-legacy | package | 15.5.5-150500.3.12.2 | x86_64 | UpdateSLE
i+ | suse-module-tools | package | 15.5.5-150500.3.12.2 | x86_64 | UpdateSLE
v | suse-module-tools | package | 15.5.1-150500.1.2 | x86_64 | OSS
v | suse-module-tools | package | 15.5.2-150500.3.3.1 | x86_64 | UpdateSLE
v | suse-module-tools | package | 15.5.3-150500.3.6.1 | x86_64 | UpdateSLE
v | suse-module-tools | package | 15.5.4-150500.3.9.1 | x86_64 | UpdateSLE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments