How to find the Debian version of an installed package

Published: Saturday, Oct 18, 2008 Last modified: Wednesday, Dec 2, 2020

Finding the package version in Debian isn’t trivial. dpkg -l bash looks like crap.

Best I’ve found is:

dpkg --status live-helper | egrep "^Version" | awk '{print $2}'

You could grep /var/lib/dpkg/available, though I think it isn’t very efficient.