Home_greyopenFATE - openSUSE feature tracking > #302919
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Improved argument handling for zypper

Feature state

openSUSE-11.0
Done
openSUSE-11.1
Done

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.

Documentation impact

Please, consider this for the documentation update.

+/- ~/! are in for SLE11 and openSUSE 11.2.

Discussion


icons/user_comment.png S. V. wrote: (10 years ago)

zypper improvements.

icons/user_comment.png J. K. wrote: (10 years ago)

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.

icons/user_comment.png J. K. wrote: (10 years ago)

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.

icons/user_comment.png J. K. wrote: (10 years ago)

All done in zypper 0.11.1

Last change: 9 years ago
Voting
Score: 0
  • Negative: 0
  • Neutral: 0
  • Positive: 0
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint