Home_greyopenFATE - openSUSE feature tracking > #302186
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

zypper needs ability to specify version of package to be manipulated.

Feature state



zypper needs to be able to install/update/remove a specific version of a package, e.g.:

$ zypper install libcurl4 =7.16.1-13

Exact syntax needs to be discussed.




icons/user_comment.png J. S. wrote: (11 years ago)

Stano, is the suggested syntax OK with you?

For me it sounds good.

icons/user_comment.png J. K. wrote: (11 years ago)

A complete syntax of version specification then would be something like:

zypper [global-options] < command > [command-options] [resolvable-name [version-specification]] 
for command: install | remove | update(?) | info | patch-info | search | $the_other_unimplemented
version-specification: [relation-op]< version >
relation-op: = | > | < | >= | <= (default: =)
icons/user_comment.png S. V. wrote: (11 years ago)

Is this syntax compatible with rug?

icons/user_comment.png J. K. wrote: (11 years ago)

The rug manual doesn't say, so asking rug maintainer to provide the info.

icons/user_comment.png J. S. wrote: (11 years ago)

Answer from Duncan on how ZLM is specifying the version:

IIRC you jsut specify something like package-1.0-2 in the cmd line. At least
something like that worked when we implemented "best package" feature for

icons/user_comment.png J. S. wrote: (11 years ago)

IMO if you want to specify a version to install, you specify exact version and not the version range.

icons/user_comment.png M. V. wrote: (10 years ago)

I have implemented (in zypper r 6273) installing by capabilities (Feature #301956), which includes almost what is wanted here, namely
zypper {in,rm} 'NAME [OP EDITION]'

I decided not to use NAME-VERSION so far because it seems it would misbehave on packages like dbus-1-x11and java-1_4_2-gcj-compat.

icons/user_comment.png J. K. wrote: (10 years ago)

Based on discussion on zypp-devel, I've changed the syntax to NAME[OP(EDITION)] (without spaces) as zypper 0.8.9. Marking as done.

NAME-EDITION syntax is not yet implemented, but we should consider that as a rug compatibility feature (covered by FATE #302148) , thus we have time to implement that for SLE-11.

Last change: 9 years ago
Score: 0
  • Negative: 0
  • Neutral: 0
  • Positive: 0
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint