You need to sign in or sign up before continuing.
python2-remove.sh 370 Bytes
Newer Older
1 2 3 4
#!/bin/sh

[ "$1" != "--run" ] && echo "Remove all possible python2 packages" && exit

5 6
. $(dirname $0)/common.sh

7
[ "$(epm print info -s)" = "alt" ] || { echo "Only ALTLinux is supported" ; exit 1 ; }
8 9 10 11 12 13 14 15

PACKAGES="$(epm qp python-module)"

[ -n "$PACKAGES" ] || { echo "All python2 packages are already removed" ; exit 0 ; }

epm remove $PACKAGES

epm remove python2-base