Add logic to unlink linked packages first.