Install or remove a list of packages