* Margarita Manterola: > Other posibilities: > > ~$ dpkg --compare-versions 4.22.3-1 lt 4.22_-3.1 && echo Yes > Yes Keep in mind that dpkg does not check for the validity of version numbers. "_" is in fact forbidden, and I believe there is a check in dak that enforces that. (The list of permitted characters in the policy is up to date AFAIK, except that "~" is missing.)