25
rated 0 times
[
25]
[
0]
/ answers: 1 / hits: 10144
/ 2 Years ago, wed, december 1, 2021, 12:11:15
What's the most robust way to parse a source package's debian/changelog
file (or debian/control
?) to get the package's version number? Something like:
pkgver=$(dpkg-parsechangelog | magic_goes_here)
I want to extract the version number (and only the version number) so that I can manipulate it in a script.
I was expecting to find a dpkg-*
utility for this purpose, but I haven't found one yet.
More From » packaging