Fix 'packges' typo and use loop when removing packages