when -r given, if there is no packages to remove, do nothing