You can get a backup of your current installed packages, by running this:
dpkg --get-selections > debianlist.txt
You can read more on manipulating packages with dpkg Here
dpkg