How to install the same debian packages on another system

The approach is simple: generate a list of installed packages on Debian-based systems and install this list of packages on the new box. This approach is useful when you want to install the same packages on another fresh OS install for example.

1. To export the list of installed packages, proceed as follows:

dpkg--get-selections|grep-v deinstall > LIST_FILE

The file LIST_FILE is small so it can be emailed to yourself by using: