Skip to content

Instantly share code, notes, and snippets.

@ckorn
Last active December 15, 2015 15:19
Show Gist options
  • Select an option

  • Save ckorn/5280496 to your computer and use it in GitHub Desktop.

Select an option

Save ckorn/5280496 to your computer and use it in GitHub Desktop.
Get the version (without Debian revision) of a package.
VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment