How to add column to `zypper search`?

I’d like to be able to see in queries which packages are installed without requesting a list of solely the installed packages; like in a file manager, I’d just like to be able to add this attribute column to certain zypper searches using a flag (although if a configuration file exists to allow it to do so by default, that would be superior most of the time).

Is this possible, or should I request something like https://bugzilla.redhat.com/show_bug.cgi?id=1301322#c0, but perhaps more broadly ecompassing adding an attribute of any available type?

It is lready shown by default for search results.

Please don’t bully me - I think I’ve actually been tired enough to be staring at it for the purpose of making this post, never actually noticing the column.

I don’t see it, @arvidjaar:

PS /home/RokeJulianLockhart> zypper search zypper                          
Repository 'utilities' is out-of-date. You can run 'zypper refresh' as root to update it.
Repository 'Packman' is out-of-date. You can run 'zypper refresh' as root to update it.
Loading repository data...
Reading installed packages...

S  | Name                         | Summary                                     | Type
---+------------------------------+---------------------------------------------+--------
   | microos_base_zypper          | openSUSE MicroOS using Zypper               | pattern
   | monitoring-plugins-zypper    | Check for software updates via zypper       | package
   | patterns-microos-base-zypper | openSUSE MicroOS using Zypper               | package
i+ | zypper                       | Command line software manager using libzypp | package
   | zypper-aptitude              | aptitude compatibility with zypper          | package
   | zypper-changelog-plugin      | Changelog listing tool                      | package
   | zypper-keys-plugin           | Zypper plugin to manage RPM keys            | package
   | zypper-lifecycle-plugin      | Zypper subcommand for lifecycle information | package
i+ | zypper-log                   | CLI for accessing the zypper logfile        | package
i+ | zypper-needs-restarting      | needs-restarting compatibility with zypper  | package
PS /home/RokeJulianLockhart>

I’m using zypper-1.14.68-1.3.

Read man zypper what i in the first column means.

2 Likes

Ah, I’d forgotten that. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.