Well, the way below is so more simple.

In older system do:

# dpkg -l|grep ii|cut -d ' ' -f 3 > /media/<ANYTHING>/packages_`date +"%Y%m%d"`.txt
# cp /etc/apt/sources.list...