Mailinglist Archive: opensuse-features (78 mails)

< Previous Next >
[openFate 302919] Improved argument handling for zypper
  • From: fate_noreply@xxxxxxx
  • Date: Tue, 22 Jul 2008 23:04:23 +0200 (CEST)
  • Message-id: <feature-302919-10@xxxxxxxxxxxxxx>
Feature changed by: Matthias Eckermann <mge@xxxxxxxxxx>
Feature #302919, revision 10
Title: Improved argument handling for zypper

openSUSE-11.0: Done
Requester: Mandatory
Projectmanager: Important

+ openSUSE-11.1: Done
+ Priority
+ Requester: Mandatory

SLED-11: Done
Requester: Mandatory

SLES-11: Done
Requester: Mandatory

Requested by: Klaus Kämpf <kkaempf@xxxxxxxxxx>
Partner organization:

Please improve argument handling on the zypper command line.
zypper install foo should look for a package named foo and, if no such
package exist, do an automatic fallback to a capability.
The --name qualifier can be used to prevent this fallback (forces a
package name.
The --capability qualifier can be used to force a capability.
Specifying versions and operators should also be more flexible
(Following the motto be generous in what you accept, and strict in what
you send )
zypper in foo-1.2-3 should try to install package foo, version 1.2,
release 3.
zypper in foo-1.2 should try to install package foo, version 1.2, any
zypper in foo should try to install package foo, any version, any
When specifying operators, spaces should be accepted, i.e. zypper in
foo = 1.2-3
Forcing a specific repository could be done by prefixing the package
name with the repository alias followed by a colon, i.e. zypper in
To be discussed on opensuse-softwaremgmt and cross-checked with other
tools like smart and yum.

Documentation Impact:
Please, consider this for the documentation update.

#1: Stanislav Visnovsky <visnov@xxxxxxxxxx> (2007-11-23 11:24:48)
zypper improvements.

#2: Ján Kupec <jkupec@xxxxxxxxxx> (2008-04-14 15:02:32)
All of the orginal suggestions are implemented, except for per-package
forcing of repositories. Can i mark as done?
I also thought of install foo@arch postfix to force specific
architecture. There is no libzypp API for per-package forcing of
repository or architecture but it's doable in zypper the old (forced)
way. Would take only few more hours.

#3: Ján Kupec <jkupec@xxxxxxxxxx> (2008-04-14 14:58:01)
BTW, we've got wildcard support, install/remove in one go using +/- ~/!
prefix (+maybe more i cannot recall now) as bonus :O) Details will be
added to the man page and wiki later.

#4: Ján Kupec <jkupec@xxxxxxxxxx> (2008-04-21 13:29:15)
All done in zypper 0.11.1

openSUSE Feature:

< Previous Next >
This Thread
  • No further messages