• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Wie in smart der DVD Vorrang vor Online ... ?

SIF

Newbie
Mein Ziel ist es, dass smart Pakete von der DVD nimmt anstatt sie von einer Online-Quelle zu laden, wenn sie auf der DVD in aktueller Version vorliegen.

Warum? Immer wieder bin ich unterwegs und habe dann Internetzugang nur per Analog-Modem.

Konkret geht es um die folgenden openSUSE 10.2 channels.

Code:
tosh:~ # smart channel --show suse-oss-yast --show suse-nonoss-yast --show suse-dvdimg-yast
[suse-oss-yast]
type = yast2
name = SUSE - OSS - YaST
manual = yes
baseurl = http://download.opensuse.org/distribution/10.2/repo/oss/

[suse-nonoss-yast]
type = yast2
name = SUSE - Non-OSS - YaST
manual = yes
baseurl = http://download.opensuse.org/distribution/10.2/repo/non-oss/

[suse-dvdimg-yast]
type = yast2
name = SUSE - DVD Image - YaST
manual = yes
baseurl = /mnt/image/suse102/


tosh:~ #

Dabei ist das ISO Image der openSUSE 10.2 DVD gemountet unter /mnt/image/suse102/.

Code:
tosh:~ # mount | grep suse102
/data2/image/openSUSE-10.2-GM-DVD-i386.iso on /mnt/image/suse102 type iso9660 (ro,noexec,nosuid,nodev,loop=/dev/loop0,unhide)
tosh:~ #

Mein Versuch, das Ziel zu erreichen durch Erniedrigung der Prioritäten der Channels suse-oss-yast und suse-nonoss-yast von 0 auf -1, ist leider gescheitert.


START BEISPIEL ***

Zunächst erniedrige ich die Prioritäten der beiden Online Channel:

Code:
tosh:~ # smart channel --set suse-oss-yast priority=-1

tosh:~ # smart channel --set suse-nonoss-yast priority=-1

tosh:~ # smart channel --show suse-oss-yast --show suse-nonoss-yast --show suse-dvdimg-yast
[suse-oss-yast]
type = yast2
name = SUSE - OSS - YaST
manual = yes
priority = -1
baseurl = http://download.opensuse.org/distribution/10.2/repo/oss/

[suse-nonoss-yast]
type = yast2
name = SUSE - Non-OSS - YaST
manual = yes
priority = -1
baseurl = http://download.opensuse.org/distribution/10.2/repo/non-oss/

[suse-dvdimg-yast]
type = yast2
name = SUSE - DVD Image - YaST
manual = yes
baseurl = /mnt/image/suse102/


tosh:~ #
Nun soll das Paket kdebase3-SuSE installiert werden, wobei ich erst einmal frage: Smart, woher nimmst Du die RPMs?

Code:
tosh:~ # smart install kdebase3-SuSE --urls
Loading cache...
Updating cache...                                                 ########################################################################################### [100%]

Computing transaction...
http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/kdebase3-SuSE-10.2-84.i586.rpm
/mnt/image/suse102/suse/i586/kio_slp-0.4.1-43.i586.rpm
/mnt/image/suse102/suse/i586/dosbootdisk-1.1-75.i586.rpm
Saving cache...

tosh:~ #

D.h. eines der 3 RPMs würde aus dem Internet heruntergeladen werden.

Nun deaktiviere ich den Channel suse-oss-yast

Code:
tosh:~ # smart channel --disable suse-oss-yast

tosh:~ # smart channel --show suse-oss-yast --show suse-nonoss-yast --show suse-dvdimg-yast
[suse-oss-yast]
type = yast2
name = SUSE - OSS - YaST
manual = yes
disabled = yes
priority = -1
baseurl = http://download.opensuse.org/distribution/10.2/repo/oss/

[suse-nonoss-yast]
type = yast2
name = SUSE - Non-OSS - YaST
manual = yes
priority = -1
baseurl = http://download.opensuse.org/distribution/10.2/repo/non-oss/

[suse-dvdimg-yast]
type = yast2
name = SUSE - DVD Image - YaST
manual = yes
baseurl = /mnt/image/suse102/


tosh:~ #

und stelle jetzt noch einmal die Frage an smart.

Code:
tosh:~ # smart install kdebase3-SuSE --urls
Loading cache...
Updating cache...                                                 ########################################################################################### [100%]

Computing transaction...
/mnt/image/suse102/suse/i586/dosbootdisk-1.1-75.i586.rpm
/mnt/image/suse102/suse/i586/kio_slp-0.4.1-43.i586.rpm
/mnt/image/suse102/suse/i586/kdebase3-SuSE-10.2-84.i586.rpm

tosh:~ #

Diesesmal werden also alle 3 RPMs vom gemouteten DVD Image genommen. Warum gab es dieses Resultat nicht bereits mit noch aktiviertem Channel suse-oss-yast? Verstehe ich Bedeutung der Prioritäten falsch?

ENDE BEISPIEL ***


Es ist leider keine Lösüng, den deaktivierten Channel suse-oss-yast permanent in dieser Stellung zu lassen. Denn diese Online Quelle enthält mehr RPMs als die openSUSE DVD (z.B. dnsmasq).

Ein anderer Ansatz, nämlich Kennzeichnung des Channels suse-dvdimg-yast als removable und Konfiguration des Channels mit prefer-removable=yes ist ähnlich gescheitert.

Als Lösung sehe ich derzeit nur zwei Wege: Kauf der Retail-Version oder spiegeln der beiden suse Channels per rsync.

An anderen Lösungen bin ich sehr interessiert.
 

Ganymed

Guru
Hi SIF.

gib unter priority nur posittive Zahlen an - fur Deine DVD halt die höchste.

So etwas ähnliches, allerdings mit Hilfe des GUI, hat bei mir mal und nur so funktioniert.

Gruß Ganymed
 
OP
S

SIF

Newbie
Hallo Ganymed,

Dein Tipp ist ein Volltreffer, d.h. er ist die Lösung.

Vielen Dank.
 
Oben