#!/bin/sh
##########################################################################
##                                                                      ##
## remove an already installed package                                  ##
## copylefted by Timo Benk <t_benk@users.sourceforge.net>               ##
##                                                                      ##
##########################################################################

. ../config_build
. ../"$SCRIPTS"/misc/lib/lib_fail


export LC_CTYPE="C"
export LANGUAGE="C"
export LC_ALL="C"
export LANG="C"

if ! [ "$1" ]; then
    cat <<EOF
Usage: $0 PACKAGENAME PACKAGENAME...
removes the selected packages out of the rescuesystem.

Important: This script should only be called out of the utils
directory.
EOF
    exit 1
fi


chroot ../$ROOTFS /usr/bin/apt-get --purge remove $@

