I'm writing a Makefile for our team to be able to set up a local environment with all of the software they need to install packages, etc so that they can develop quickly without having to figure out which software to install. Our repository has a
PACKAGES file that has all of the required ubuntu packages that can be installed with this little gem:
[unix]$ sudo dpkg --set-selections < PACKAGES [unix]$ sudo apt-get -u dselect-upgrade
This is great because its easy for everyone to get their environment set up by putting this in a Makefile. The challenge is how to restore their environment when the project is done. How do you uninstall all of the
PACKAGES (and their unused dependencies) if you want to clean the environment? Is there an equivalent approach to remove a list of packages from the command line?