I have about 30 repos in my 10.3 box, and zypper became realy realy slow when refreshing cache. So I write this small script to sync zypper repositories with smart (one way !)
Hope it helps. Use at own risk.
Code:
#/!/bin/bash
smart channel --remove-all
zypper -v sl | awk -F "\|" '
$0 !~ /^[-]/
{
********gsub(/(^[ ]*)|([ ]*$)/,"",$4)
********type=$4
********gsub(/(^[ ]*)|([ ]*$)/,"",$5)
********alias=$5
********gsub(/(^[ ]*)|([ ]*$)/,"",$7)
********uri=$7
********if ( type =="NONE"){
****************print "unknown type for repository "alias
********}
********else{
****************reti=sprintf ("smart channel --add**\"%s\" type=\"%s\"
name=\"%s\" baseurl=\"%s\" -y" ,alias,type,alias,uri)
****************system(reti)
********}
}'
smart channel --show
smart update
after update finish run [smart --gui] [/code] to install any package