Mailinglist Archive: zypp-devel (148 mails)
| < Previous | Next > |
Re: [zypp-devel] libzypp-4.6.1: Allow prioritizing repos.
- From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
- Date: Mon, 31 Mar 2008 13:34:48 +0200
- Message-id: <47F0CC58.2030109@xxxxxxx>
Jan Kupec wrote:
No, we document the spec, not the implementation.
Actually the spec right now has a conflict between yum and smart:
YUM:
With the plugin enabled, you can add priorities to repositories by
adding the line:
priority=N
to a repository entry, where /N/ is an integer number from 1 to 99. The
default priority for repositories is 99. The repositories with the
lowest priority number have the highest priority. Usually, it is best to
give at least the CentOS /base/ and /update/ repositories a very high
priority. In the following example of the *CentOS-Base.repo* file, the
CentOS /base/ and /update/ repositories are given the highest possible
priority (1):
Smart:
Usage: smart priority [options]
This command allows changing the priority of given packages.
Packages with higher priorities are considered a better option
even when package versions state otherwise. Using priorities
one may avoid unwanted upgrades, force downgrades, select
packages in given channels as preferential, and other kinds
of interesting setups. When a package has no explicit priority,
the channel priority is used. The channel priority may be
changed using the 'channel' command, and defaults to 0 when
not set.
Notice that negatives priorities must be preceded by '--' in
the command line, otherwise they'll be interpreted as command
line options.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
But then we should explicitly state that we support these values (zypper
now says you must use 1-99).
j.
No, we document the spec, not the implementation.
Actually the spec right now has a conflict between yum and smart:
YUM:
With the plugin enabled, you can add priorities to repositories by
adding the line:
priority=N
to a repository entry, where /N/ is an integer number from 1 to 99. The
default priority for repositories is 99. The repositories with the
lowest priority number have the highest priority. Usually, it is best to
give at least the CentOS /base/ and /update/ repositories a very high
priority. In the following example of the *CentOS-Base.repo* file, the
CentOS /base/ and /update/ repositories are given the highest possible
priority (1):
Smart:
Usage: smart priority [options]
This command allows changing the priority of given packages.
Packages with higher priorities are considered a better option
even when package versions state otherwise. Using priorities
one may avoid unwanted upgrades, force downgrades, select
packages in given channels as preferential, and other kinds
of interesting setups. When a package has no explicit priority,
the channel priority is used. The channel priority may be
changed using the 'channel' command, and defaults to 0 when
not set.
Notice that negatives priorities must be preceded by '--' in
the command line, otherwise they'll be interpreted as command
line options.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |