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.

This is the same issue that was discussed in #7.