Install and remove packages in batches of 500 to avoid an overflow of
the command line.