#!/bin/sh yum install redhat-lsb-core desktop-file-utils emacs-filesystem xdg-utils wget screen net-tools nmap-ncat ARCH=`uname -i` PROC=`uname -p` RELEASE=`rpm -q sl-release` RELEASEVER=`lsb_release -r | awk '{print $2}'` if [ $RELEASE ] then if rpm -qp http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/slce-release-7.3-1.slce7.x86_64.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/slce-release-notes-7.3-1.slce7.noarch.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/yum-conf-slce7-1-1.slce7.noarch.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/yum-conf-slce7x-7.3-1.slce7.noarch.rpm then for p in sl-release-notes yum-conf-sl7x sl-bookmarks do if rpm -q $p >/dev/null 2>&1 then echo rpm -e $p --nodeps rpm -e $p --nodeps fi done echo rpm -e $RELEASE --nodeps rpm -e $RELEASE --nodeps RELEASE=`echo $RELEASE | cut -d '-' -f 3` echo rpm -ivh slce-release-7.3-1.slce7.x86_64.rpm slce-release-notes-7.3-1.slce7.noarch.rpm yum-conf-slce7-1-1.slce7.noarch.rpm yum-conf-slce7x-7.3-1.slce7.noarch.rpm slce-bookmarks-6-1.2.el7.noarch.rpm rpm -ivh http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/slce-release-7.3-1.slce7.x86_64.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/slce-release-notes-7.3-1.slce7.noarch.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/yum-conf-slce7-1-1.slce7.noarch.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/$ARCH/CyrEd/RPMS/yum-conf-slce7x-7.3-1.slce7.noarch.rpm http://downloads.naulinux.ru/pub/SLCE/7.3/x86_64/CyrEd/RPMS/slce-bookmarks-6-1.2.el7.noarch.rpm else echo Repository slce-base is not accesible exit -1 fi fi yum groupinstall russification-slce cyr-fonts miscellaneous; \ yum install zip unzip