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:
- Separator9.10.3.dfsg.P4
- The upstream version-
- Separator12.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
version of <debian versioned package> : debian package version
version of <debianpkg dependency> : debian package version
<debianpkg version> as debian package version : debian package version
Properties
debian package version <debian package version> : debian package version
epoch of <debian package version> : debian package version epoch
extrema of <debian package version> : ( debian package version, debian package version )
maximum of <debian package version> : debian package version
minimum of <debian package version> : debian package version
revision of <debian package version> : debian package version revision
unique value of <debian package version> : debian package version with multiplicity
upstream of <debian package version> : debian package upstream version
Casts
<debian package version> as debian package version : debian package version
<debian package version> as string : string
Operators
<debian package version> < <string> : boolean
<debian package version> <= <string> : boolean
<debian package version> = <string> : boolean
<string> < <debian package version> : boolean
<string> <= <debian package version> : boolean
<string> = <debian package version> : boolean