[opensuse-factory] zypper install package (and version)
Hi all. I can't find the way to say zypper to install a certain version of a resolvable when there are several available. The equivalent one in apt would be for example: apt-get install gimp-unstable=2.4.0rc3-0.pm.1 man zypper or http://en.opensuse.org/Zypper/Usage don't help me :-( Thanks Miquel. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 26/09/2007, Miquel A. Noguera <miquel@acsat.net> wrote:
Hi all.
I can't find the way to say zypper to install a certain version of a resolvable when there are several available.
The equivalent one in apt would be for example:
apt-get install gimp-unstable=2.4.0rc3-0.pm.1
I don't believe this is possible with zypper at this time. It is not a limitation of libzypp - you can select the specific version in yast2 sw_single (see the versions tab). _ Benjamin Weber --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
I don't believe this is possible with zypper at this time. It is not a limitation of libzypp - you can select the specific version in yast2 sw_single (see the versions tab).
Its supposed to be possible in 10.3 zypper, for zypper>=0.8.4, as mentioned in bug 247320 The new syntax is (from current zypper man page): install (in) [options] <capability> ... Install or update resolvables. Capability is: NAME, or "NAME[OP<EDITION>]", where OP is < <= = >= > and EDITION is VERSION[-RELEASE], for example: zyp- per=0.8.8-2. Names are not only package names but any symbols provided by packages: /bin/vi, libcurl.so.3, perl(Time::ParseDate). Just remember to quote to protect the special characters from the shell, for example: zypper>0.8.10 or 'zypper>0.8.10' If EDITION is not specified, the newest available version will be installed. This also means that if the package is already installed and newer versions are available, it will get upgraded to the newest one. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Druid wrote:
I don't believe this is possible with zypper at this time. It is not a limitation of libzypp - you can select the specific version in yast2 sw_single (see the versions tab).
Its supposed to be possible in 10.3 zypper, for zypper>=0.8.4, as mentioned in bug 247320
Yes, but the default has been reverted back to --name (selecting packages for installation by name) and new --capability option has been introduced to install by capability (e.g. versioned).
The new syntax is (from current zypper man page):
install (in) [options] <name> ... install (in) [options] --capability <capability> ... Install or update packages or other resolvables. The resolvables can be selected by their name or by a capability they provide. Capability is: NAME, or "NAME[OP<EDITION>]", where OP is <, <=, =, >=, or > and EDITION is VERSION[-RELEASE], for example: zyp- per=0.8.8-2. The NAME component of a capability is not only a package name but any symbol provided by packages: /bin/vi, libcurl.so.3, perl(Time::ParseDate). Just remember to quote to protect the special characters from the shell, for example: zypper\>0.8.10 or 'zypper>0.8.10' If EDITION is not specified, the newest available version will be installed. This also means that if the package is already installed and newer versions are available, it will get upgraded to the newest one. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* Jan Kupec <jkupec@suse.cz> [Sep 27. 2007 10:15]:
Druid wrote:
I don't believe this is possible with zypper at this time. It is not a limitation of libzypp - you can select the specific version in yast2 sw_single (see the versions tab).
Its supposed to be possible in 10.3 zypper, for zypper>=0.8.4, as mentioned in bug 247320
Yes, but the default has been reverted back to --name (selecting packages for installation by name) and new --capability option has been introduced to install by capability (e.g. versioned).
Well, there's still a difference between name+version and capability+version. The install-by-capability will match any package providing the capability, which is not necessarily the package name or the package version. So if you want an explicit package name with an explicit version, you have to use 'yast sw_single' currently. zypper should be extended to provide this in the future. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Miquel A. Noguera schrieb:
Hi all.
I can't find the way to say zypper to install a certain version of a resolvable when there are several available.
The equivalent one in apt would be for example:
apt-get install gimp-unstable=2.4.0rc3-0.pm.1
man zypper or http://en.opensuse.org/Zypper/Usage don't help me :-(
Thanks Miquel. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi Miquel You missed the feature --capability which is described in man:/zypper. I would paste it here, but I'm outside the virtual machine 10.3 is running on. ;-) Peter Buschbacher --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Miquel A. Noguera wrote:
Hi all.
I can't find the way to say zypper to install a certain version of a resolvable when there are several available.
$ zypper in -C (--capability) gimp-unstable=2.4.0rc3-0.pm.1
man zypper or http://en.opensuse.org/Zypper/Usage don't help me :-(
Use the latest version of zypper, the man page should be up-to-date there. The wiki page is out-of-date yet, i'll update it soon. Jano --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (6)
-
Benji Weber
-
Druid
-
Jan Kupec
-
Klaus Kaempf
-
Miquel A. Noguera
-
Peter Buschbacher