You have two or more repositories with similar content but located on different media?
You want to tell zypp that you prefer packages being installed from CD rather than being downloaded?
In the past a common solution was to give a higher priority to the preferred repository:
$ zypper lr -pu
Name | Priority | URI
openSUSE-11.1 80 dvd:///
openSUSE-11.1-Oss 99 http://download.opensuse.org/distribution/11.1/repo/oss
Disadvantage of this approach: Due to the higher priority the solver will not consider the online repo, as long as there is a matching package on the DVD. Even if the online repo contains a newer version. Even worse, if you manually installed a package from the online repo,
'zypper dup' may try to reinstall the DVD package, because you prefer this repo.
With
libzypp-6.4.0 there is a new option
download.media_preference available in
/etc/zypp/zypp.conf. This allows you to assign the same priority to those repos, so the solver will always pick the best package. But in case the best package is avaiable on different media, it will be selected according to the
download.media_preference. Valid values for this option are:
download - download rather than using CD/DVD (default)volatile - ask for CD/DVD rather than downloading
This is how it could look like:
$ zypper lr -pu
Name | Priority | URI
openSUSE-11.1 99 dvd:///
openSUSE-11.1-Oss 99 http://download.opensuse.org/distribution/11.1/repo/oss
$grep download.media_preference /etc/zypp/zypp.conf
download.media_preference = volatile