glibc-restore.sh 459 Bytes
Newer Older
1 2
#!/bin/sh

3
[ "$1" != "--run" ] && echo "Uninstall etersoft build of glibc" && exit
4

5
distro="$($DISTRVENDOR -d)" ; [ "$distro" = "ALTLinux" ] || [ "$distro" = "ALTServer" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
6

7
epm downgrade glibc-core glibc-preinstall
8
exit 0
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

TR=$(mktemp)

epm repolist | grep etersoft >$TR
while read n ; do
    epm removerepo $n </dev/null
done <$TR

epm rl

while read n ; do
    epm addrepo $n </dev/null
done <$TR

epm rl