alpm-package-version7
Package versions for alpm based packages.
Overview
The package version format represents version information for ALPM based packages. This format is used in build scripts or file formats for package metadata (e.g. in PKGBUILD, PKGINFO, SRCINFO, alpm-repo-desc, or alpm-lib-desc) to describe package versions, or component versions as part of a package relation.
The value is represented by a composite version string, which may consist of several components (alpm-epoch, alpm-pkgver, alpm-pkgrel). Various forms of composite version strings exist, but they are only used in specific contexts.
Full
The value for this form consists of an alpm-pkgver, directly followed by a ‘-’ sign, directly followed by an alpm-pkgrel (e.g. 1.0.0-1). This alpm-package-version form is used in various scenarios, such as:
- •
-
package filenames
- •
-
package-relationexpressions- •
-
replaces,conflict,provides,depend,makedependandcheckdependin PKGINFO files
- •
-
pkgverin BUILDINFO files
- •
-
pkgverin PKGINFO files
- •
-
as part of
buildtoolverinBUILDINFOv2files
- •
-
as part of
installedin BUILDINFO files
Full with epoch
The value for this form consists of an alpm-epoch, directly followed by a ‘:’ sign, directly followed by an alpm-pkgver, directly followed by a ‘-’ sign, directly followed by an alpm-pkgrel (e.g. 1:1.0.0-1). This alpm-package-version form is used in various scenarios, such as:
- •
-
package filenames
- •
-
package-relationexpressions- •
-
replaces,conflict,provides,depend,makedependandcheckdependin PKGINFO files
- •
-
pkgverin BUILDINFO files
- •
-
pkgverin PKGINFO files
- •
-
as part of
buildtoolverinBUILDINFOv2files
- •
-
as part of
installedin BUILDINFO files
- •
-
as part of the
alpm-state-repocontents
Minimal
The value for this form consists of an alpm-pkgver (e.g. 1.0.0). This alpm-package-version form is used in various scenarios, such as:
- •
-
package-relationexpressions- •
-
replaces,conflicts,provides,depends,makedependsandcheckdependsin PKGBUILD files
- •
-
replaces,conflict,provides,depend,makedependandcheckdependin PKGINFO files
- •
-
pkgverin PKGBUILD files
- •
-
pkgverin SRCINFO files
- •
-
as part of
buildtoolverinBUILDINFOv2files
Minimal with epoch
The value for this form consists of an alpm-epoch, directly followed by a ‘:’ sign, directly followed by an alpm-pkgver (e.g. 1:1.0.0). This alpm-package-version form is used in various scenarios, such as:
- •
-
as part of
package-relationexpressions- •
-
replaces,conflicts,provides,depends,makedependsandcheckdependsin PKGBUILD files
- •
-
replaces,conflict,provides,depend,makedependandcheckdependin PKGINFO files
- •
-
pkgverin PKGBUILD files
- •
-
pkgverin SRCINFO files
- •
-
as part of
buildtoolverinBUILDINFOv2files
Examples
"1.0.0-1"
A full package version.
"1:1.0.0-1"
A full package version with epoch.
"1.0.0"
A minimal package version.
"1:1.0.0"
A minimal package version with epoch.