Assuming you are using an apt/dpkg distro:
Save the list of packages on your reference system:
dpkg --get-selections > packages.lst
Then install packages based on that list on your target system, after updating the list of available packages:
dpkg --merge-avail <(apt-cache dumpavail)
dpkg --clear-selections
dpkg --set-selections < packages.lst
apt-get dselect-upgrade
Removed by mod