clean up code from copy/paste.
fixed --purge packages

Signed-off-by: pussbb <abr@scalix.com>