don't install packages that are already installed

Don't install packages that are already installed and don't uninstall packages that aren't installed.