Mailinglist Archive: opensuse-features (82 mails)

< Previous Next >
[Fate 302919] Improved argument handling for zypper
  • From: fate_noreply@xxxxxxx
  • Date: Tue, 15 Jul 2008 16:45:03 +0200 (CEST)
  • Message-id: <308351585.194561216133103460.JavaMail.tomcat@xxxxxxxxxxxxx>
Feature changed by: visnov
Feature #302919, revision 9
Title: Improved argument handling for zypper

openSUSE-11.0: Done
Requester: Mandatory
Projectmanager: Important

SLED-11: Done
Requester: Mandatory

SLES-11: Done
Requester: Mandatory

Requested by: 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: visnov@xxxxxxxxxx (2007-11-23 11:24:48)
zypper improvements.

#2: 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: 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: jkupec@xxxxxxxxxx (2008-04-21 13:29:15)
All done in zypper 0.11.1

SUSE Feature Tool:

< Previous Next >
This Thread
  • No further messages