Feature changed by: Ján Kupec
Feature #302186, revision 13
Title: zypper needs ability to specify version of package to be
manipulated.
openSUSE-10.3: Done
Priority
Requester: Important
Projectmanager: Mandatory
Requested by: Ján Kupec
+ Partner organization: openSUSE.org
Description:
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.
References:
https://bugzilla.novell.com/show_bug.cgi?id=247320
Discussion:
#1: Jiri Srain (2007-05-22 10:34:30)
Stano, is the suggested syntax OK with you?
For me it sounds good.
#2: Ján Kupec (2007-05-22 11:27:11)
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: =)
#3: Stanislav Visnovsky (2007-05-22 11:35:30)
(reply to #2)
Is this syntax compatible with rug?
#4: Ján Kupec (2007-05-22 12:38:47) (reply to #3)
The rug manual doesn't say, so asking rug maintainer to provide the
info.
#5: Jiri Srain (2007-06-12 15:48:29) (reply to #4)
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 ZLM.
#6: Jiri Srain (2007-06-12 15:49:07) (reply to #2)
IMO if you want to specify a version to install, you specify exact
version and not the version range.
#8: Martin Vidner (2007-07-27 19:45:03)
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.
#9: Ján Kupec (2007-08-06 18:36:37)
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.
--
openSUSE Feature:
https://features.opensuse.org/?rm=feature_show&id=302186