#!/bin/sh yum install redhat-lsb-core for p in yum-conf-slce7 yum-conf-slce7x do if rpm -q $p >/dev/null 2>&1 then echo rpm -e $p --nodeps rpm -e $p --nodeps fi done ARCH=`uname -i` PROC=`uname -p` RELEASE=`rpm -q slce-release` RELEASEVER=`lsb_release -r | awk '{print $2}'` if [ $RELEASE ] then if rpm -qp http://downloads.naulinux.ru/pub/NauLinux/sites/QNet/$RELEASEVER/$ARCH/RPMS/nau-qnet-release-$RELEASEVER-1.Nau7x.$PROC.rpm then #yum list nau-release || exit -1 #Repository is not accesible echo rpm -e $RELEASE --nodeps rpm -e $RELEASE --nodeps RELEASE=`echo $RELEASE | cut -d '-' -f 3` echo rpm -ivh nau-qnet-release-$RELEASEVER-1.Nau7x.$PROC.rpm yum-conf-nau7-qnet-1-1.Nau7x.noarch.rpm yum-conf-nau7x-qnet-7.3-1.Nau7x.noarch.rpm yum-conf-nau7-1-3.Nau7x.noarch.rpm rpm -ivh http://downloads.naulinux.ru/pub/NauLinux/sites/QNet/$RELEASEVER/$ARCH/RPMS/nau-qnet-release-$RELEASEVER-1.Nau7x.$PROC.rpm http://downloads.naulinux.ru/pub/NauLinux/sites/QNet/$RELEASEVER/$ARCH/RPMS/yum-conf-nau7-qnet-1-1.Nau7x.noarch.rpm http://downloads.naulinux.ru/pub/NauLinux/sites/QNet/$RELEASEVER/$ARCH/RPMS/yum-conf-nau7x-qnet-7.3-1.Nau7x.noarch.rpm http://downloads.naulinux.ru/pub/NauLinux/$RELEASEVER/$ARCH/os/Packages/yum-conf-nau7-1-3.Nau7x.noarch.rpm else echo Repository naulinux-qnet not accesible exit -1 fi fi