show searched packages with their versions
by mrmazda from LinuxQuestions.org on (#56J20)
I've had no luck finding a way to search in Debian that includes the versions of the packages found. In openSUSE, this is somewhat simple to discover, as zypper includes everything in one man page rather than having various names to learn along with separate (or not) man pages, such as apt-cache, apt-get, apt-mark, apt-file, apt-key, aptitude and dpkg.
Generally my searches are seeking whether newer version is yet available. Output I would like in a form similar to what follows (from openSUSE):
Code:# zypper se -s inxi
...
S | Name | Type | Version | Arch | Repository
--+------+------------+--------------------+--------+-----------
| inxi | package | 3.1.00-lp151.3.6.1 | noarch | Update
| inxi | package | 3.0.38-lp151.3.3.1 | noarch | Update
| inxi | package | 2.3.40-lp151.2.1 | noarch | OSS
| inxi | srcpackage | 3.1.00-lp151.3.6.1 | noarch | Update
| inxi | srcpackage | 3.0.38-lp151.3.3.1 | noarch | UpdateEven better would show packages sorted first by version and skipping arch.
Can any similar output be provided in Debian? If yes, is there a config option
to make it default?


Generally my searches are seeking whether newer version is yet available. Output I would like in a form similar to what follows (from openSUSE):
Code:# zypper se -s inxi
...
S | Name | Type | Version | Arch | Repository
--+------+------------+--------------------+--------+-----------
| inxi | package | 3.1.00-lp151.3.6.1 | noarch | Update
| inxi | package | 3.0.38-lp151.3.3.1 | noarch | Update
| inxi | package | 2.3.40-lp151.2.1 | noarch | OSS
| inxi | srcpackage | 3.1.00-lp151.3.6.1 | noarch | Update
| inxi | srcpackage | 3.0.38-lp151.3.3.1 | noarch | UpdateEven better would show packages sorted first by version and skipping arch.
Can any similar output be provided in Debian? If yes, is there a config option
to make it default?