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
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