I have recently been tasked with making a dev version of one of my production servers (both 12.04LTS). If I could create an image on my cloud service, it would be simple. Problem, these are both hosted on 2 different cloud service (firehost and azure).
I did not create the production server in question, but I need to make sure I at least have all of the same packages installed. I have tried:
dpkg --get-selections
and did a diff between the dpkg's for both servers, but since this list include all dependencies installed, which is quite a large list and would take a while to sort through.
2 questions I guess:
1.) Am I going about this the proper way?
If yes,
2.) Can I get a list of just the top level packages installed?