debian package version

The version string of a Debian package, as displayed by the dpkg -l command, follows this format: [epoch:]upstream_version[-debian_revision].

For example, the following is a valid Debian package version string: 1:9.10.3.dfsg.P4-12.3+deb9u4.

It is composed of:

  • 1 - The epoch version
  • : - Separator
  • 9.10.3.dfsg.P4 - The upstream version
  • - - Separator
  • 12.3+deb9u4- The revision version

Only the upstream_version is required, and the other parts are optional. That means 1.0.1 is also a valid Debian package version string, composed only of the upstream_version part.

The inspector debian package version returns the whole version string: [epoch:]upstream_version[-debian_revision].

The name structure of Debian package versions is documented here.

Version Platforms
8.1.535.0 Debian, Ubuntu
9.5.13.130 Raspbian

Creation

debian package version <string> : debian package version
<debianpkg version> as debian package version : debian package version

Properties

debian package version <debian package version> : debian package version

Casts

<debian package version> as debian package version : debian package version

Operators