I have to move a server to a different DC in a different country. The server is currently running 11.10, but the new fresh installed OS will be 12.04. The hardware of both is completely different.
In order to install the same packages that the server currently uses, I am thinking of exporting all packages to a list and then run this list on the new machine. I will after that proceed with transferring the configuration files for the LAMP stack.
My question is if this will work, or if there will be a problem because of the differences in the versions of the OS?
What is the correct way to do it?
PS. I have no access to KVM to reload the OS as an image, so this would not be an option.