[Fate 302919] Improved argument handling for zypper
Feature changed by: jkupec Feature #302919, revision 6 Title: Improved argument handling for zypper openSUSE-11.0: Candidate Priority Requester: Mandatory Projectmanager: Important SLED-11: New Priority Requester: Mandatory SLES-11: New Priority Requester: Mandatory Requested by: kkaempf@novell.com Partner organization: openSUSE.org Description: 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 release. zypper in foo should try to install package foo, any version, any release. 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 opensuse:foo - To be discussed on opensuse-softwaremgmt and cross-checked with other tools like smart and yum. Discussion: #1: visnov@novell.com (2007-11-23 11:24:48) zypper improvements. + #2: jkupec@novell.com (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@novell.com (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. -- SUSE Feature Tool: http://partnerfate.suse.de/?rm=feature_show&id=302919
participants (1)
-
fate_noreply@suse.de