zypper install specific major version without specifying the minor version
6
votes
3
answers
3844
views
I am writing a script that installs some packages and does some configuration work. I want the script to install a specific major version of a package, but I do not care which minor version of the package it is.
More to the point, I want it to install the latest 2.y.z release of the package, but not 1.y.z or 3.y.z (or any other major version number).
I have tried (without success)
-
zypper install 'mypackage=2'
- `zypper install 'mypackage>11' 'mypackage=2.0.0' 'mypackage 'mypackage>=2.0.0' not found in package names. Trying capabilities. No
> provider of 'mypackage >= 2.0.0' found.
However, after that message, it still proceeds with installing mypackage-1.5.0, because that satisfies the second package-edition specified.
Asked by Tomas Creemers
(163 rep)
Jun 8, 2015, 05:42 PM
Last activity: Nov 10, 2023, 11:17 PM
Last activity: Nov 10, 2023, 11:17 PM